Query editor
SELECTdate_trunc('hour', block_time) as "hour",type,sum(amount) / 1e18 as "amount"FROM(-- outbound transfersSELECTblock_time,CAST(value as decimal) AS amount,'Outflow' as typeFROMfantom.tracesWHERE"from" = 0x7F7BF9c92A02940C53EBaf1707144b0eE88Cbda0AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall')OR call_type IS null)UNION ALL-- inbound transfersSELECTblock_time,CAST(value as decimal) AS amount,'Inflow' as typeFROMfantom.tracesWHERE"to" = 0x7F7BF9c92A02940C53EBaf1707144b0eE88Cbda0AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall')OR call_type IS null)UNION ALL-- gas costsSELECTblock_time,- CAST(gas_used as decimal) * CAST(gas_price as decimal) AS amount,'Gas Fees' as typeFROMfantom.transactionsWHERE"from" = 0x7F7BF9c92A02940C53EBaf1707144b0eE88Cbda0) tGROUP BY1,2ORDER BY1 DESC,2