Query editor
-- Metric 三链事件 × 10k 猎人,10/15 起(v4,替代只到 10/24 的 v3)WITH logs AS (SELECT 'ethereum' AS blockchain, block_time, tx_hash, tx_from, tx_to, contract_address, topic0, topic1FROM ethereum.logsWHERE block_date >= DATE '2026-10-15'AND topic0 IN (0x9734819749a91fc3be03ea83205f924ee08479bd3f0da48efc91d94d050cac1e, 0xa55772434bee2a347743b1e8086fa44bac69a060e124ec92ab6b9cc7fc5268af, 0xf53d04bdbda6d88dd536895ec533833d3e09d0cbe2474fae32a368c5f83fc610)UNION ALLSELECT 'bnb', block_time, tx_hash, tx_from, tx_to, contract_address, topic0, topic1FROM bnb.logsWHERE block_date >= DATE '2026-10-15'AND topic0 IN (0x9734819749a91fc3be03ea83205f924ee08479bd3f0da48efc91d94d050cac1e, 0xa55772434bee2a347743b1e8086fa44bac69a060e124ec92ab6b9cc7fc5268af, 0xf53d04bdbda6d88dd536895ec533833d3e09d0cbe2474fae32a368c5f83fc610)UNION ALLSELECT 'robinhood', block_time, tx_hash, tx_from, tx_to, contract_address, topic0, topic1FROM robinhood.logsWHERE block_date >= DATE '2026-10-15'AND topic0 IN (0x9734819749a91fc3be03ea83205f924ee08479bd3f0da48efc91d94d050cac1e, 0xa55772434bee2a347743b1e8086fa44bac69a060e124ec92ab6b9cc7fc5268af, 0xf53d04bdbda6d88dd536895ec533833d3e09d0cbe2474fae32a368c5f83fc610)), ev AS (SELECT blockchain, block_time, tx_hash, tx_to, contract_address AS pool,CASE topic0 WHEN 0x9734819749a91fc3be03ea83205f924ee08479bd3f0da48efc91d94d050cac1e THEN 'swap'WHEN 0xa55772434bee2a347743b1e8086fa44bac69a060e124ec92ab6b9cc7fc5268af THEN 'lp_add' ELSE 'lp_remove' END AS action,CASE WHEN topic0 = 0x9734819749a91fc3be03ea83205f924ee08479bd3f0da48efc91d94d050cac1e THEN tx_fromELSE bytearray_substring(topic1, 13, 20) END AS accountFROM logs)SELECT e.blockchain, e.pool, e.action, e.account, e.tx_to,count(*) AS n_events, count(DISTINCT e.tx_hash) AS n_txs,min(e.block_time) AS first_time, max(e.block_time) AS last_time,h.counts, h.usd_amountFROM ev AS eINNER JOIN dune.thea.dataset_airdrop_hunters AS h ON e.account = h.accountGROUP BY 1, 2, 3, 4, 5, 10, 11