Query editor
WITH tracked(chain_key, entity_name, role, address) AS (VALUES('ethereumSepolia','Ethereum Intent Router','router',0x8a996eB1AC6580662b66CE5Df7f1892EA6382e72),('ethereumSepolia','USDC','token',0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238),('ethereumSepolia','WETH','token',0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14),('ethereumSepolia','EURC','token',0x08210F9170F89Ab7658F0B5E3fF39b0E03C594D4),('ethereumSepolia','CCTP TokenMessengerV2','circle',0x8FE6B999Dc680CcFDD5Bf7EB0974218be2542DAA),('ethereumSepolia','CCTP MessageTransmitterV2','circle',0xE737e5cEBEEBa77EFE34D4aa090756590b1CE275),('ethereumSepolia','Gateway Wallet','circle',0x0077777d7EBA4688BDeF3E311b846F25870A19B9),('ethereumSepolia','Uniswap V3 SwapRouter02','protocol',0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E),('ethereumSepolia','Aave V3 Pool','protocol',0x6Ae43d3271ff6888e7Fc43Fd7321a503ff738951))SELECT t.chain_key, t.entity_name, t.role, concat('0x', to_hex(t.address)) AS tracked_address, tx.block_time, tx.block_number, concat('0x', to_hex(tx.hash)) AS tx_hash, concat('0x', to_hex(tx."from")) AS tx_from, concat('0x', to_hex(tx."to")) AS tx_to, CASE WHEN tx."to" = t.address THEN 'inbound/call' WHEN tx."from" = t.address THEN 'outbound/create' ELSE 'related' END AS direction, tx.success, tx.gas_used, cast(tx.value as double) / 1e18 AS native_valueFROM sepolia.transactions txJOIN tracked t ON tx."to" = t.address OR tx."from" = t.addressWHERE tx.block_date >= current_date - interval '90' dayORDER BY tx.block_time DESCLIMIT 500