Query editor
With Ethereum as(select date_trunc('month', block_time) as month,sum(varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e6 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('month', block_time) as month, 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('month', block_time) as month,sum((varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e6) 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(selectdate_trunc('month', block_time) as month,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('month', block_time) as month,sum((varbinary_to_uint256(varbinary_substring(data,1)))* 1.0 / 1e6) as Volumefrom tron.logswhere topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efand topic2 = 0x0000000000000000000000000aa13265a166e3488285d8e016ea7383e06a5232and block_time >= Cast('2022-12-31 23:59' AS timestamp)group by 1),BNB as(selectdate_trunc('month', block_time) as month,sum((varbinary_to_uint256(varbinary_substring(data, 97, 32))* 1.0) / 1e18) as Volumefrom bnb.logswhere (tx_to = 0x77eEb345cd1763B077E67732c50EeFFB918BdF77 or tx_from = 0xaaaf0666a916bdf97710a8e44e42ba250490e5b8)and topic0 = 0x2415a5b602fd0082bd30dae862c30bbf8abbfcf39db48726b2d8ef555ee1abdeand block_time >= Cast('2022-12-31 23:59' AS timestamp)group by 1