Query editor
WITH pull AS (SELECT tr."from" AS contract,count(*) AS pulls, count(DISTINCT tr.tx_hash) AS pull_txs, count(DISTINCT tr.tx_from) AS senders,array_agg(DISTINCT tr.tx_from) AS sender_list,min(tr.block_time) AS first_t, max(tr.block_time) AS last_tFROM robinhood.traces trWHERE tr.block_date >= DATE '2026-05-01'AND tr.call_type = 'call'AND bytearray_substring(tr.input,1,4) = 0x23b872ddAND bytearray_substring(tr.input,17,20) = tr.tx_fromAND tr."from" <> tr.tx_fromGROUP BY 1HAVING count(DISTINCT tr.tx_from) <= 8 AND count(*) >= 15),dex AS (SELECT tr."from" AS contract,count(DISTINCT tr.tx_hash) AS dex_txs,sum(CASE WHEN tr."to" = 0x8366a39cc670b4001a1121b8f6a443a643e40951 AND bytearray_substring(tr.input,1,4) = 0x48c89491 THEN 1 ELSE 0 END) AS v4_unlocks,sum(CASE WHEN bytearray_substring(tr.input,1,4) = 0x128acb08 THEN 1 ELSE 0 END) AS v3_swaps,sum(CASE WHEN tr.call_type = 'staticcall' AND bytearray_substring(tr.input,1,4) = 0x70a08231 THEN 1 ELSE 0 END) AS balance_ofs,sum(CASE WHEN tr."to" = 0x0bd7d308f8e1639fab988df18a8011f41eacad73 AND bytearray_substring(tr.input,1,4) IN (0xd0e30db0, 0x2e1a7d4d) THEN 1 ELSE 0 END) AS weth_wrapsFROM robinhood.traces trWHERE tr.block_date >= DATE '2026-05-01'AND tr."from" IN (SELECT contract FROM pull)GROUP BY 1),cr AS (SELECT address, "from" AS creator, block_time AS created_at, length(code) AS code_len FROM robinhood.creation_traces WHERE address IN (SELECT contract FROM pull))SELECT p.contract, cr.creator, cr.created_at, cr.code_len, p.pulls, p.pull_txs, p.senders, p.sender_list, p.first_t, p.last_t,d.dex_txs, d.v4_unlocks, d.v3_swaps, d.balance_ofs, d.weth_wrapsFROM pull p LEFT JOIN dex d ON d.contract = p.contract LEFT JOIN cr ON cr.address = p.contractWHERE coalesce(d.v4_unlocks,0) + coalesce(d.v3_swaps,0) > 0ORDER BY p.first_t DESC