Query editor
WITH printr AS (SELECT DATE '2025-10-14' AS start_date),txs AS (SELECT 'ethereum' AS chain, hash AS tx_hash FROM ethereum.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'bnb',hash FROM bnb.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'base',hash FROM base.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'mantle',hash FROM mantle.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'avalanche_c',hash FROM avalanche_c.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'arbitrum',hash FROM arbitrum.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)UNION ALL SELECT 'monad',hash FROM monad.transactionsWHERE ("to" IN (0xb77726291b125515d0a7affeea2b04f2ff243172,0x576cbcde3fe704b2166e8fac54d7a664b0325c10)OR "from"=0xf70da97812cb96acdf810712aa562db8dfa3dbef)AND block_time>=(SELECT start_date FROM printr)),created_candidates AS (SELECT 'ethereum' AS chain,tr.address AS token,tr.tx_hash,tr.block_time AS created_atFROM ethereum.traces tr JOIN txs t ON t.chain='ethereum' AND t.tx_hash=tr.tx_hashWHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'bnb',tr.address,tr.tx_hash,tr.block_time FROM bnb.traces tr JOIN txs t ON t.chain='bnb' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'base',tr.address,tr.tx_hash,tr.block_time FROM base.traces tr JOIN txs t ON t.chain='base' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'mantle',tr.address,tr.tx_hash,tr.block_time FROM mantle.traces tr JOIN txs t ON t.chain='mantle' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'avalanche_c',tr.address,tr.tx_hash,tr.block_time FROM avalanche_c.traces tr JOIN txs t ON t.chain='avalanche_c' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'arbitrum',tr.address,tr.tx_hash,tr.block_time FROM arbitrum.traces tr JOIN txs t ON t.chain='arbitrum' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULLUNION ALL SELECT 'monad',tr.address,tr.tx_hash,tr.block_time FROM monad.traces tr JOIN txs t ON t.chain='monad' AND t.tx_hash=tr.tx_hash WHERE tr.type IN('create','create2') AND tr.address IS NOT NULL),zero_mints AS (SELECT 'ethereum' AS chain,e.contract_address AS token,e.evt_tx_hash AS tx_hash,MIN(e.evt_block_time) AS mint_time FROM erc20_ethereum.evt_Transfer e JOIN txs t ON t.chain='ethereum' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'bnb',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_bnb.evt_Transfer e JOIN txs t ON t.chain='bnb' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'base',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_base.evt_Transfer e JOIN txs t ON t.chain='base' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'mantle',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_mantle.evt_Transfer e JOIN txs t ON t.chain='mantle' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'avalanche_c',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_avalanche_c.evt_Transfer e JOIN txs t ON t.chain='avalanche_c' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'arbitrum',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_arbitrum.evt_Transfer e JOIN txs t ON t.chain='arbitrum' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3UNION ALL SELECT 'monad',e.contract_address,e.evt_tx_hash,MIN(e.evt_block_time) FROM erc20_monad.evt_Transfer e JOIN txs t ON t.chain='monad' AND t.tx_hash=e.evt_tx_hash WHERE e."from"=0x0000000000000000000000000000000000000000 GROUP BY 1,2,3),confirmed_tokens AS (SELECT c.chain,c.token,c.tx_hash,LEAST(c.created_at,z.mint_time) AS created_atFROM created_candidates c JOIN zero_mints z ON z.chain=c.chain AND z.tx_hash=c.tx_hash AND z.token=c.token),per_day AS (SELECT chain,DATE_TRUNC('day',created_at) AS day,COUNT(DISTINCT token) AS tokens_createdFROM confirmed_tokens