Query editor
with relevant_transactions as (select distinct ethereum.logs.tx_hashfrom ethereum.logsinner join ethereum.transactions on ethereum.logs.tx_hash = ethereum.transactions.hashwhereethereum.logs.contract_address = 0xa160cdab225685da1d56aa342ad8841c3b53f291and ethereum.logs.topic0 = 0xe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c34931and ethereum.transactions.success = trueand to_unixtime(ethereum.logs.block_time) between 1740200400 and 1750360470and to_unixtime(ethereum.transactions.block_time) between 1740200400 and 1750360470),filtered_traces as (selectethereum.traces.tx_hash, ethereum.traces.value, ethereum.traces."to"from ethereum.traceswhereethereum.traces.tx_hash in (select tx_hash from relevant_transactions)and ethereum.traces."from" = 0xa160cdab225685da1d56aa342ad8841c3b53f291and ethereum.traces.input = 0xand ethereum.traces.call_type = 'call'and to_unixtime(ethereum.traces.block_time) between 1740200400 and 1750360470)selectto_unixtime(ethereum.logs.block_time) as unix_ts, ethereum.logs.block_time as block_ts, ethereum.logs.contract_address as tc_address, ethereum.logs.tx_hash as transaction, varbinary_substring(ethereum.logs.data, 13, 20) as _recipient, ethereum.logs.tx_from as _relayer, count(*) over (partition by (varbinary_substring(ethereum.logs.data, 13, 20))) as tc_recipient_freq, (varbinary_to_uint256(varbinary_substring(ethereum.logs.data, 65, 32)) / 1000000000000000000.0) as tc_fee_eth, varbinary_to_uint256(varbinary_substring(ethereum.logs.data, 65, 32)) as tc_fee_wei, ethereum.transactions."from" as tx_from, ethereum.transactions."to" as tx_to, ethereum.transactions.value as transaction_value, (cast(filtered_traces.value as double) / 1000000000000000000) as trace_value_eth, filtered_traces.value as trace_value_wei, ethereum.transactions.type as tx_type, ethereum.transactions.nonce as nonce, round((cast(ethereum.transactions.gas_used as double) / cast(ethereum.transactions.gas_limit as double) * 100), 3) as mana_ratio, round((cast(ethereum.transactions.gas_used as double) / cast(ethereum.transactions.gas_limit as double) * 100), 1) as round_mana_ratio, ethereum.transactions.gas_limit as mana, ethereum.transactions.gas_price as mana_price, ethereum.transactions.gas_used as mana_used, ethereum.transactions.max_fee_per_gas as max_fee_per_mana, ethereum.transactions.max_priority_fee_per_gas as max_prio_per_manafrom ethereum.logsinner join ethereum.transactions on ethereum.logs.tx_hash = ethereum.transactions.hashleft join filtered_traces on ethereum.logs.tx_hash = filtered_traces.tx_hashwhereethereum.logs.contract_address = 0xa160cdab225685da1d56aa342ad8841c3b53f291and ethereum.logs.topic0 = 0xe9e508bad6d4c3227e881ca19068f099da81b5164dd6d62b2eaf1e8bc6c34931and ethereum.transactions.success = trueand to_unixtime(ethereum.logs.block_time) between 1740200400 and 1750360470and to_unixtime(ethereum.transactions.block_time) between 1740200400 and 1750360470order by ethereum.logs.block_time desc