Query editor
with eth_transfer_raw_before as (select block_time, "from" as address, (-1) * cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhereblock_number < 17536635and (call_type is null or call_type not in ('delegatecall', 'callcode', 'staticcall'))and success = trueand value > uint256 '0'union allselect block_time, "to" as address, cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhereblock_number < 17536635and (call_type is null or call_type not in ('delegatecall', 'callcode', 'staticcall'))and success = trueand value > uint256 '0'union allselect block_time, "from" as address, (-1) * cast(gas_price as double) * gas_used as amountfrom ethereum.transactionswhereblock_number < 17536635and success = true),eth_transfer_raw_now as (select block_time, "from" as address, (-1) * cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere (call_type is null or call_type not in ('delegatecall', 'callcode', 'staticcall'))and success = trueand value > uint256 '0'union allselect block_time, "to" as address, cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere (call_type is null or call_type not in ('delegatecall', 'callcode', 'staticcall'))and success = trueand value > uint256 '0'union allselect block_time, "from" as address, (-1) * cast(gas_price as double) * gas_used as amountfrom ethereum.transactionswhere success = true),eth_balance_before as (select t1.address,sum(t1.amount)/1e18 as before_balancefrom eth_transfer_raw_before t1 inner join query_2668996 t2 on t1.address = t2.address-- where t1.address is not nullgroup by 1),eth_balance_now as (select t1.address,sum(t1.amount)/1e18 as now_balancefrom eth_transfer_raw_now t1 inner join query_2668996 t2 on t1.address = t2.address-- where t1.address is not nullgroup by 1),eth_net as(selectt1.address,t1.now_balance,t2.before_balance,t1.now_balance - COALESCE(t2.before_balance,0) as net