Query editor
with eth_in_detail as (select-- date_trunc('hour',block_time) as date,block_time,"from",value*power(10,-18) as amount,value*power(10,-18)*price as valuefromethereum.transactions t1 inner join (select minute,price from prices.usd where symbol='ETH' and contract_address is NULL ) t2 on date_trunc('minute',t1.block_time)=t2.minutewheredate(block_time)=date('2022-11-06')and value <> 0and to in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)and "from" not in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)),eth_out_detail as (selectblock_time,to,value*power(10,-18) as amount,value*power(10,-18)*price as valuefromethereum.transactions t1 inner join (select minute,price from prices.usd where symbol='ETH' and contract_address is null ) t2 on date_trunc('minute',t1.block_time)=t2.minutewheredate(block_time)=date('2022-11-06')and value <> 0and "from"in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)and to not in (0x2faf487a4414fe77e2327f0bf4ae2a264a776ad2,0xc098b2a3aa256d2140208c3de6543aaef5cd3a94)),eth_in_out_detail as (select-- date(block_time),sum(value) as value,'eth_in' as typefrometh_in_detail-- group by-- 1unionselect-- date(block_time),sum(value)*-1 as value,'eth_out' as typefrometh_out_detail-- group by-- 1),