Query editor
-- outbound transfersSELECT SUM(amount) as current_eth_balance FROM (SELECT "from" AS address,-CAST(tr.value AS DOUBLE)/POWER(10,18) AS amount,tx_hashFROM ethereum.traces trWHERE "from" = 0x7063E83dF5349833A21f744398fD39D42fbC00f8AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)UNION ALL-- inbound transfersSELECT to AS address, (CAST(value AS DOUBLE)/POWER(10,18)) AS amount,tx_hashFROM ethereum.tracesWHERE to = 0x7063E83dF5349833A21f744398fD39D42fbC00f8AND successAND (call_type NOT IN ('delegatecall', 'callcode', 'staticcall') OR call_type IS null)UNION ALL-- gas costsSELECT "from" AS address, -(CAST(gas_used AS DOUBLE)/POWER(10,18) * CAST(gas_price AS DOUBLE)),hashFROM ethereum.transactions etWHERE "from" = 0x7063E83dF5349833A21f744398fD39D42fbC00f8-- AND success -- this is not required as you'll still have to pay for gas even if transaction fails) x