Query editor
with eth_transfer_raw as (select "from" as address, (-1) * cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "to" as address, cast(value as decimal(38, 0)) as amountfrom ethereum.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "from" as address, (-1) * cast(gas_price as double) * gas_used as amountfrom ethereum.transactionswhere success = true),eth_balance as (select address,sum(amount) as balance_amountfrom eth_transfer_rawwhere address is not null -- exclude the null address dataAND address NOT IN (SELECT address FROM evms.contracts)group by 1order by 2 desc),bnb_transfer_raw as (select "from" as address, (-1) * cast(value as decimal(38, 0)) as amountfrom bnb.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "to" as address, cast(value as decimal(38, 0)) as amountfrom bnb.traceswhere call_type = 'call'and success = trueand value > uint256 '0'and "from" is not nulland "to" is not nullunion allselect "from" as address, (-1) * cast(gas_price as double) * gas_used as amount