Query editor
select * from (select "timestamp" as day,count(distinct address) as daufrom (with sub_a as (selecttx_hashfrom arbitrum.logs where topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efand contract_address = 0xed65c5085a18fa160af0313e60dcc7905e944dc7and topic1 = 0x0000000000000000000000000000000000000000000000000000000000000000),sub_b as (select DATE_TRUNC('day', block_time) as "timestamp",(bytearray_to_uint256 (data) / 1e18) ethx,contract_address,substr(topic1, 13) as source,substr(topic2, 13) as to,index,rank() over (partition by tx_hash order by index desc) as rnk,tx_hashfrom arbitrum.logs where topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efand contract_address = 0xed65c5085a18fa160af0313e60dcc7905e944dc7and tx_hash in (select tx_hash from sub_a)),mint as (select "timestamp", ethx, to as address, tx_hashfrom sub_bwhere rnk = 1),sub_c as (select DATE_TRUNC('day', block_time) as "timestamp",(bytearray_to_uint256 (data) / 1e18) * (-1) ethx,contract_address,substr(topic1, 13) as source,substr(topic2, 13) as to,tx_hashfrom arbitrum.logs where topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efand contract_address = 0xed65c5085a18fa160af0313e60dcc7905e944dc7and topic2 = 0x0000000000000000000000000000000000000000000000000000000000000000),burn as (select "timestamp", ethx,B."from" as address, A.tx_hash from sub_c Aleft join(select "from", hash from arbitrum.transactions) Bon A.tx_hash = B.hash),consolidated as (select"timestamp", ethx, address,(B.effective_gas_price*B.gas_used)/1e18 as tx_fees,tx_hashfrom(select * from mintunionselect * from burn) Ainner join