Query editor
WITH deposits AS (SELECTdate_trunc('hour', block_time) AS hour,SUM(value / 1e18) AS eth_inFROM sepolia.transactionsWHERE "to" = 0xc7aacb570f9f47471f896e220869756c590079d1GROUP BY 1),withdrawals AS (SELECTdate_trunc('hour', block_time) AS hour,SUM(value / 1e18) AS eth_outFROM sepolia.transactionsWHERE "from" = 0xc7aacb570f9f47471f896e220869756c590079d1GROUP BY 1)SELECTCOALESCE(d.hour, w.hour) AS hour,COALESCE(d.eth_in, 0) AS deposit_eth,COALESCE(w.eth_out, 0) AS withdraw_eth,COALESCE(d.eth_in, 0) - COALESCE(w.eth_out, 0) AS net_flow_ethFROM deposits dFULL OUTER JOIN withdrawals w ON d.hour = w.hourORDER BY 1;