Query editor
/* Arbitrum — Safe inflows / outflows / net / running balance (ETH) */WITH addr AS (-- Your address in BYTES (remove "0x" before FROM_HEX)SELECT FROM_HEX('4B78FB95F7C2E0122356A73D8AAEB5AAF220D38C') AS safe),daily AS (SELECTCAST(DATE_TRUNC('day', t.block_time) AS DATE) AS day,-- Inflows: ETH sent to the address (on Arbitrum)SUM(CASE WHEN t."to" = (SELECT safe FROM addr)THEN COALESCE(TRY_CAST(t.value AS DECIMAL), 0) / 1e18ELSE 0 END) AS inflow_eth,-- Outflows: ETH sent from the address (on Arbitrum)SUM(CASE WHEN t."from" = (SELECT safe FROM addr)THEN COALESCE(TRY_CAST(t.value AS DECIMAL), 0) / 1e18ELSE 0 END) AS outflow_ethFROM arbitrum.transactions tWHERE (t."to" = (SELECT safe FROM addr) OR t."from" = (SELECT safe FROM addr))AND t.success = TRUEGROUP BY 1)SELECTday,inflow_eth,outflow_eth,(inflow_eth - outflow_eth) AS net_eth,SUM(inflow_eth - outflow_eth) OVER (ORDER BY day) AS balance_ethFROM dailyORDER BY day;