Documentation Index
Fetch the complete documentation index at: https://docs.codex.io/llms.txt
Use this file to discover all available pages before exploring further.
filterTokens, to populate “Discovery” pages where you can showcase tokens that fit specific criteria. From simple search queries to complex filtering and trending data, Codex has you covered across 80+ networks with data on over 70M+ tokens.Search by Name or Symbol
filterTokens endpoint supports improved symbol matching when using the phrase parameter with $ prefix (eg: $PEPE). Use the $ prefix for results with improved token symbol matches, or without the $ prefix to return partial token symbol matches. You can also use the token contract address to ensure an exact match.We also recommend utilizing ranking attributes such as
volume24 or trendingScore24, and filters such as liquidity to help ensure search results are relevant.Example query with $ prefix and trendingScore24 results
Example query with $ prefix and trendingScore24 results
Example query with partial symbol match and volume24 results
Example query with partial symbol match and volume24 results
Discover Trending Tokens
Example query with trendingScore24, avg wallet age >1 week, and other filters
Example query with trendingScore24, avg wallet age >1 week, and other filters
filterTokens is limited to a maximum of 200 results per API call. This is why ranking attributes and specific filters are important to ensure you receive the token results that are most relevant for your query.onFilterTokensUpdated subscription. It accepts the same filter inputs as filterTokens and streams matching tokens as their metrics change, so you can keep a live trending list without polling.Verified Metadata
filterTokens, token, and tokens endpoints is enriched by The Grid, an ecosystem intelligence platform that collects and human-verifies off-chain data for established Web3 projects.When Grid data is available, queries return three additional fields:
asset (verified token metadata including description, icon, and cross-chain deployments), assetDeployments (a list of every network and address the token is deployed on), and organization (metadata about the issuing organization, including URLs and socials).This data is not available for every token. The Grid covers established, verified projects and not unverified or newly launched tokens.
For display fields like name, symbol, and description, and any metadata contributions made by Codex will override and take priority over Grid data.
Advanced Filtering
Example query to find trending launchpad (Bonk) tokens that have migrated
Example query to find trending launchpad (Bonk) tokens that have migrated
Boolean logic with boolFilter
For most filters, the flat input object is the right tool: every field you set is implicitly ANDed together. Reach for boolFilter when you need different filter conditions for a subsets of tokens. The most common case is per-network thresholds: a token doing 500 transactions a day on a high-activity chain is noise, but on a quieter chain it’s a strong signal. Flat filters force a single threshold across all chains, while boolFilter lets you tune criteria per network in a single query.boolFilter accepts and, or, and not operators, each containing another filters object. Operators can be nested up to 4 levels deep.Example: per-network trending screener
Example: per-network trending screener
filterTokens. Check out Defined.fi, or explorer.codex.io, to see more filtering options:
trendingIgnored is adjusted regularly to ensure the best results are shown for trending tokens. Set to true if you want results to include stablecoins, wrapped base tokens, rugs/scams/low quality tokens etc.statsType filters MEV-related events from data to ensure you receive real user activity.- FILTERED: Removes MEV events. Shows “organic” volume.
- UNFILTERED: Includes everything, even MEV events
trendingIgnored: false and statsType: FILTERED for the cleanest data.Global Fees Paid
Bundlers/Snipers/Insiders Data
- Bundlers: Identified as 4 or more buys of the same token/pair in the same block. Additionally, each swap must be more than $5 with the total bundle being greater than 0.05% of the total supply. This data helps to detect coordinated buying activity from multiple wallets.
- Snipers: Wallets that buy a token within 4 seconds of the first swap. Token creators are excluded. This helps identify bots and fast traders attempting to buy immediately at launch.
- Insiders: Definitions and methodologies for insiders for EVM and SVM networks are outlined as follows:
-
EVM Insider Definition
- Recipient funded by creator — wallet’s firstFundedByAddress matches token creator
- Direct transfer from creator — transfer.from is the creator address
- Transfer from existing insider — transfer.from is already in the insider set
-
SVM (Solana) Insider Definition
- Recipient funded by creator — same as EVM
- Creator is tx signer or sender — if creator is in txMakers or is the from address (when NOT a DEX event)
- Any non-swap launchpad token transfer — if it’s a launchpad token and the recipient doesn’t send tokens back in the same tx, assumed insider
-
EVM Insider Definition
Data Fields:
sniperCount, bundlerCount, insiderCount, devHeldPercentage, sniperHeldPercentage, bundlerHeldPercentage, insiderHeldPercentage.You can also filter by these data types with
gt lt gte lte.Example query for this data using filterTokens
Example query for this data using filterTokens
- Multi-Network discovery: Search across multiple networks simultaneously
- Time-based analysis: Filter by creation date, recent activity, or specific timestamps
- Exchange-Specific: Focus on tokens from specific exchanges or launchpad protocols
- Behavioral Filtering: Use wallet age and trading pattern metrics to assess token quality
- Risk Management: Combine scam detection with low liquidity, volume, and our new bundlers/snipers/insiders data filters