Query editor
-- FreshDeployHunter — fresh, funded, novel, non-token, non-factory contract deploys (Ethereum).-- Save this on Dune as a query, add the 4 NUMBER parameters below, then copy the query_id.-- Parameters (Dune -> "Add parameter", type Number):-- days e.g. 21 (look-back window)-- min_eth e.g. 5 (minimum ETH received)-- max_eth e.g. 1000000 (maximum ETH received; set low e.g. 4 to go surgical / small fish)-- max_clones e.g. 3 (novelty: max contracts sharing the same bytecode)-- max_deployer_deploys e.g. 10 (exclude factories/launchers: max deploys by the same deployer)WITH deploys AS (SELECTct.address,ct.tx_hash,ct."from" AS deployer,MIN(ct.block_time) AS deployed_at,keccak(ct.code) AS code_hashFROM ethereum.creation_traces ctWHERE ct.block_time > date_add('day', -{{days}}, now())AND ct.code IS NOT NULLGROUP BY 1, 2, 3, 5),inflow AS (SELECT t."to" AS address, SUM(t.value) / 1e18 AS eth_inFROM ethereum.traces tWHERE t.block_time > date_add('day', -{{days}}, now())AND t.successAND t.value > 0AND t."to" IN (SELECT address FROM deploys)GROUP BY 1),code_freq AS ( SELECT code_hash, COUNT(*) AS n FROM deploys GROUP BY 1 ),deployer_freq AS ( SELECT deployer, COUNT(*) AS n FROM deploys GROUP BY 1 )SELECTd.address,d.deployed_at,i.eth_in,cf.n AS clones,df.n AS deployer_deploysFROM deploys dJOIN inflow i ON i.address = d.addressJOIN code_freq cf ON cf.code_hash = d.code_hashJOIN deployer_freq df ON df.deployer = d.deployerLEFT JOIN tokens_ethereum.erc20 tok ON tok.contract_address = d.addressWHERE i.eth_in > {{min_eth}}AND i.eth_in <= {{max_eth}}AND cf.n <= {{max_clones}}AND df.n <= {{max_deployer_deploys}}AND tok.contract_address IS NULLORDER BY i.eth_in DESCLIMIT 100;