Query editor
-- Solana token pool explorer. A mint is a case-sensitive 32-byte address.-- Dune's swap table records individual pool fills, including routed fills.-- Pool creation coverage is protocol-specific; a creation record does not prove a pool is still open.WITH input AS (SELECT trim('{{Token mint}}') AS mint,try_cast('{{Page}}' AS integer) AS page_number,CAST(current_timestamp AT TIME ZONE 'UTC' AS timestamp) AS as_of_utc), params AS (SELECT mint, as_of_utc, page_number FROM inputWHERE regexp_like(mint, '^[1-9A-HJ-NP-Za-km-z]{32,44}$')AND length(try(from_base58(mint))) = 32), pool_creations AS (SELECT 'Raydium' AS platform, 'AMM v4' AS pool_type, "account_amm" AS pool_address,IF("account_coinMintAddress" = p.mint, "account_pcMintAddress", "account_coinMintAddress") AS paired_mint, call_block_time AS created_atFROM raydium_amm_solana.raydium_amm_call_initializeCROSS JOIN params pWHERE ("account_coinMintAddress" = p.mint OR "account_pcMintAddress" = p.mint)UNION ALLSELECT 'Raydium' AS platform, 'AMM v4' AS pool_type, "account_amm" AS pool_address,IF("account_coinMint" = p.mint, "account_pcMint", "account_coinMint") AS paired_mint, call_block_time AS created_atFROM raydium_amm_solana.raydium_amm_call_initialize2CROSS JOIN params pWHERE ("account_coinMint" = p.mint OR "account_pcMint" = p.mint)UNION ALLSELECT 'Raydium' AS platform, 'CPMM' AS pool_type, "account_poolState" AS pool_address,IF("account_token0Mint" = p.mint, "account_token1Mint", "account_token0Mint") AS paired_mint, call_block_time AS created_atFROM raydium_cp_solana.raydium_cp_swap_call_initializeCROSS JOIN params pWHERE ("account_token0Mint" = p.mint OR "account_token1Mint" = p.mint)UNION ALLSELECT 'Raydium' AS platform, 'CLMM' AS pool_type, "poolState" AS pool_address,IF("tokenMint0" = p.mint, "tokenMint1", "tokenMint0") AS paired_mint, evt_block_time AS created_atFROM raydium_clmm_solana.amm_v3_evt_poolcreatedeventCROSS JOIN params pWHERE "tokenMint0" = p.mint OR "tokenMint1" = p.mintUNION ALLSELECT 'Orca' AS platform, 'Whirlpool' AS pool_type, "account_whirlpool" AS pool_address,IF("account_tokenMintA" = p.mint, "account_tokenMintB", "account_tokenMintA") AS paired_mint, call_block_time AS created_atFROM whirlpool_solana.whirlpool_call_initializepoolCROSS JOIN params pWHERE ("account_tokenMintA" = p.mint OR "account_tokenMintB" = p.mint)UNION ALLSELECT 'Orca' AS platform, 'Whirlpool' AS pool_type, "account_whirlpool" AS pool_address,IF("account_tokenMintA" = p.mint, "account_tokenMintB", "account_tokenMintA") AS paired_mint, call_block_time AS created_atFROM whirlpool_solana.whirlpool_call_initializepoolv2CROSS JOIN params pWHERE ("account_tokenMintA" = p.mint OR "account_tokenMintB" = p.mint)UNION ALLSELECT 'Orca' AS platform, 'Whirlpool (adaptive fee)' AS pool_type, "account_whirlpool" AS pool_address,IF("account_tokenMintA" = p.mint, "account_tokenMintB", "account_tokenMintA") AS paired_mint, call_block_time AS created_atFROM whirlpool_solana.whirlpool_call_initializepoolwithadaptivefeeCROSS JOIN params pWHERE ("account_tokenMintA" = p.mint OR "account_tokenMintB" = p.mint)UNION ALLSELECT 'Orca' AS platform, 'Whirlpool' AS pool_type, "account_whirlpool" AS pool_address,IF("account_token_mint_a" = p.mint, "account_token_mint_b", "account_token_mint_a") AS paired_mint, call_block_time AS created_atFROM whirlpool_solana.whirlpool_call_initialize_poolCROSS JOIN params pWHERE ("account_token_mint_a" = p.mint OR "account_token_mint_b" = p.mint)UNION ALL