Query editor
with evm_all as (select b.tx_hash, b.tx_to, b.blockchain, b.tx_from, b.block_time, b.amount_usdfrom dex.trades binner join dune.bitgetwallet.dataset_bgw_swap_ca a on a.contract = b.tx_towhere b.block_month >= date('2025-11-01')and b.block_time >= date('{{start_date}}')and b.block_time < date('{{end_date}}')unionselect a.tx_hash, a.tx_to, a.blockchain, a.tx_from, a.block_time, a.amount_usdfrom dex.trades ainner join dune.bitgetwallet.dataset_bgw_swap_ca_eip7702 b on a.tx_from = b.contractwhere a.block_month >= date('2025-11-01')and a.block_time >= date('{{start_date}}')and a.block_time < date('{{end_date}}')),evm as (select *from (select tx_hash, tx_to, blockchain, tx_from, block_time, amount_usdfrom evm_allunionselect tx_hash, tx_to, 'tron' as blockchain,varbinary_ltrim(varbinary_substring(data, 32 * 2 + 1, 32)) as tx_from,block_time,varbinary_to_uint256(varbinary_substring(data, 32 * 8 + 1, 32)) / 1e6 as amountfrom tron.logswhere topic0 in (0xb3aaace6521de497554dd9edb77049ac0a55997076dd8009aefa0aa96f25248a)and contract_address in (from_tron_address('TVpZRLyK78Y1XX6PD26MzokZC3WJLZvmHL'))and varbinary_ltrim(varbinary_substring(data, 32 * 4 + 1, 32)) = 0xa614f803b6fd780986a42c78ec9c7f77e6ded13cand block_date >= date('{{start_date}}')and block_date < date('{{end_date}}')unionselect tx_hash, tx_to, 'tron' as blockchain,varbinary_ltrim(varbinary_substring(data, 32 * 2 + 1, 32)) as tx_from,block_time,varbinary_to_uint256(varbinary_substring(data, 32 * 7 + 1, 32)) / 1e6 as amountfrom tron.logswhere topic0 in (0xb3aaace6521de497554dd9edb77049ac0a55997076dd8009aefa0aa96f25248a)and contract_address in (from_tron_address('TVpZRLyK78Y1XX6PD26MzokZC3WJLZvmHL'))and varbinary_ltrim(varbinary_substring(data, 32 * 3 + 1, 32)) = 0xa614f803b6fd780986a42c78ec9c7f77e6ded13cand block_date >= date('{{start_date}}')and block_date < date('{{end_date}}'))),sol_tx as (select t.id as tx_idfrom solana.transactions twhere t.block_date >= date('{{start_date}}') and t.block_date < date('{{end_date}}')and t.successand contains(t.account_keys, 'jitodontfront111111111111111111BitgetWaLLet')),sol as (