Query editor
with Ethereum as(Selectdate_trunc('day', block_time) as day,sum(casewhen varbinary_substring(data, 65, 32) = 0x0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f then (varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e18when varbinary_substring(data, 65, 32) = 0x0000000000000000000000004fabb145d64652a948d72533023f6e7a623c7c53 then (varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e18Else (varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e6End) as Volumefrom ethereum.logswhere (tx_to = 0x0fe08D911246566fdFD4afE0181a21ab810EE1C2 or tx_from = 0xaaaf0666a916bdf97710a8e44e42ba250490e5b8)and topic0 = 0x2415a5b602fd0082bd30dae862c30bbf8abbfcf39db48726b2d8ef555ee1abdeand block_time >= Cast('2022-12-31 23:59'AS timestamp)group by 1),Solana as(select date_trunc('day', block_time) as day,sum(token_balance_change) as Volumefrom solana.account_activitywhere address = '9DdoiFTDqfAmVpYVuT9mbJYG3MgRfRKZzDY6p7rZRkwd' and post_token_balance > pre_token_balanceand block_time >= Cast('2022-12-31 23:59'AS timestamp)group by 1),Polygon as(selectdate_trunc('day', block_time) as day,sum(casewhen varbinary_substring(data, 65, 32) = 0x0000000000000000000000008f3cf7ad23cd3cadbd9735aff958023239c6a063 then (varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e18Else (varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e6End) as Volumefrom polygon.logswhere (tx_to = 0x0AC79b8711A92340e55ACf6ACceC03df6e181171 or tx_from = 0xaaaf0666a916bdf97710a8e44e42ba250490e5b8)and topic0 = 0x2415a5b602fd0082bd30dae862c30bbf8abbfcf39db48726b2d8ef555ee1abdeand block_time >= Cast('2022-12-31 23:59'AS timestamp)group by 1),Base as(select date_trunc('day', block_time) as day,sum((varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e6) as Volumefrom base.logswhere (tx_to = 0x652A545E3eBb5d1a81C7F03Fed19804f15AAbc3a or tx_from = 0xaaaf0666a916bdf97710a8e44e42ba250490e5b8)and topic0 = 0x2415a5b602fd0082bd30dae862c30bbf8abbfcf39db48726b2d8ef555ee1abdeand block_time >= Cast('2022-12-31 23:59'AS timestamp)group by 1),Tron as(select date_trunc('day', block_time) as day,sum((varbinary_to_uint256(varbinary_substring(data,1)))* 1.0 / 1e6) as Volumefrom tron.logswhere topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef