Query editor
selectblock_date, count(1)from ethereum.transactionswhere true-- and block_time >= date '2023-01-01'group by 1order by 1 desc-- with prices as (-- select * from (-- select-- block_date-- , amount_usd / token_bought_amount as price-- , (-- rank() over (-- partition by block_date, token_bought_address-- order by block_number desc, evt_index desc-- ) = 1-- ) as close-- from dex.trades where token_bought_address = 0x2170ed0880ac9a755fd29b2688956bd959f933f8-- ) where close-- )-- , txs as (-- select-- block_date-- , count(1) as count-- from ethereum.transactions-- where true-- -- and block_time >= date '2023-01-01'-- group by 1-- order by 1 desc-- )-- select-- t.block_date-- , cast(count as double) / 1206665 as count-- , price / 1816.45 as price-- from txs t join prices p on t.block_date = p.block_date