Query editor
WITH evm_tokens(chain_key, dune_chain, token_symbol, token_address) AS (VALUES('arcTestnet','arc','USDC',0x3600000000000000000000000000000000000000),('arcTestnet','arc','EURC',0x89B50855Aa3bE2F677cD6303Cec089B5F319D72a),('arcTestnet','arc','USYC',0xe9185F0c5F296Ed1797AaE4238D26CCaBEadb86C),('ethereumSepolia','sepolia','USDC',0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238),('ethereumSepolia','sepolia','WETH',0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14),('ethereumSepolia','sepolia','EURC',0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4)), sol_tokens(chain_key, token_symbol, token_address) AS (VALUES('solanaDevnet','USDC','4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU'),('solanaDevnet','EURC','HzwqbK3fZrpkqkXc29H5oP5GqQxT3fK4dQBQC47g7ZJ1')), stellar_tokens(chain_key, token_symbol, token_address) AS (VALUES('stellarTestnet','USDC','CBIELTK6YBZJU5UP2WWQEUCYKLPU6AUNZ2BQ4WWFEIE3USCIHMXQDAMA'),('stellarTestnet','XLM','CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC'))SELECT 'erc20_arc.evt_transfer' AS source_table, e.chain_key, e.token_symbol, tr.evt_block_time AS block_time, tr.evt_block_number AS block_number, concat('0x', to_hex(tr.evt_tx_hash)) AS tx_hash, concat('0x', to_hex(tr."from")) AS from_address, concat('0x', to_hex(tr."to")) AS to_address, cast(tr.value as double) AS raw_amountFROM erc20_arc.evt_transfer trJOIN evm_tokens e ON e.dune_chain='arc' AND tr.contract_address=e.token_addressWHERE tr.evt_block_date >= current_date - interval '90' dayUNION ALLSELECT 'erc20_sepolia.evt_transfer' AS source_table, e.chain_key, e.token_symbol, tr.evt_block_time AS block_time, tr.evt_block_number AS block_number, concat('0x', to_hex(tr.evt_tx_hash)) AS tx_hash, concat('0x', to_hex(tr."from")) AS from_address, concat('0x', to_hex(tr."to")) AS to_address, cast(tr.value as double) AS raw_amountFROM erc20_sepolia.evt_transfer trJOIN evm_tokens e ON e.dune_chain='sepolia' AND tr.contract_address=e.token_addressWHERE tr.evt_block_date >= current_date - interval '90' dayUNION ALLSELECT 'tokens_solana.transfers' AS source_table, s.chain_key, s.token_symbol, tr.block_time, tr.block_slot AS block_number, tr.tx_id AS tx_hash, tr.from_owner AS from_address, tr.to_owner AS to_address, cast(tr.amount as double) AS raw_amountFROM tokens_solana.transfers trJOIN sol_tokens s ON lower(tr.token_mint_address)=lower(s.token_address)WHERE tr.block_date >= current_date - interval '90' dayUNION ALLSELECT 'stellar.token_transfers' AS source_table, st.chain_key, st.token_symbol, tr.closed_at AS block_time, tr.ledger_sequence AS block_number, concat('0x', to_hex(tr.transaction_hash)) AS tx_hash, tr."from" AS from_address, tr."to" AS to_address, cast(tr.amount_raw AS double) AS raw_amountFROM stellar.token_transfers trJOIN stellar_tokens st ON lower(tr.contract_id)=lower(st.token_address)WHERE tr.closed_at >= current_timestamp - interval '90' dayORDER BY block_time DESCLIMIT 500