Query editor
with token_prices as (select date_trunc('day', minute) as date,symbol,avg(price) as pricefrom prices.usd pwhere blockchain = 'ethereum'and symbol in ('stETH', 'DAI', 'USDC', 'USDT')and minute >= timestamp '2023-11-18'group by 1, 2),eth_price as (select date_trunc('day', minute) as date,symbol,avg(price) as pricefrom prices.usd pwhere symbol = 'ETH'and minute >= timestamp '2023-11-18'group by 1, 2),prices as (select * from token_pricesunion allselect * from eth_price),eth_xfers as (select date_trunc('day', block_time) as date,'ETH' as token,cast("from" as varchar) as sender,count(*) as txs,sum(value) / power(10, 18) as valuefrom ethereum.transactions eleft join ens.reverse_latest rev on e."from" = rev.addresswhere to = 0x5F6AE08B8AeB7078cf2F96AFb089D7c9f51DA47d -- blastand successand "from" <> 0x0000000000000000000000000000000000000000and block_time >= timestamp '2023-11-18'group by 1, 2, 3),remaining as (select date_trunc('day', evt_block_time) as date,'stETH' as token,cast("from" as varchar) as sender,count(*) as txs,sum(cast(value as double) / 1e18) as valuefrom erc20_ethereum.evt_Transfer eleft join ens.reverse_latest rev on e."from" = rev.addresswhere contract_address = 0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84 -- stETHand to = 0x5F6AE08B8AeB7078cf2F96AFb089D7c9f51DA47d -- blastand "from" <> 0x0000000000000000000000000000000000000000and evt_block_time >= timestamp '2023-11-18'group by 1, 2, 3union all