Usage Guidelines
- Query using
address(contract address) andnetworkId(chain ID) - Token ID format is
address:networkId(e.g.,0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2:1) - Use the
infofield for token metadata like images, supply, and descriptions - Use
socialLinksto get community links (Twitter, Telegram, Discord, website, etc.) - Use
isScamto check token verification status —isScam: falseis Codex’s equivalent of a token being “verified”. There is no separateisVerifiedfield - Use
launchpadto get information about tokens launched via pump.fun or similar platforms - For Solana tokens, use
mintableandfreezablefields to check token authorities
Troubleshooting Tips
How do I find a token's network ID?
How do I find a token's network ID?
Common network IDs: Ethereum (1), BSC (56), Polygon (137), Arbitrum (42161), Base (8453), Solana (1399811149). See Supported Chains for a complete list, or use the
getNetworks query.Why is token info returning null?
Why is token info returning null?
Some fields like
info.description or socialLinks may be null for newer or less popular tokens that don’t have metadata indexed yet. Core fields like address, networkId, decimals are always available.How do I get the token price?
How do I get the token price?
The
token query returns token metadata, not price data. Use getTokenPrices for current prices, or pairMetadata for price within a specific trading pair.What's the difference between token and filterTokens?
What's the difference between token and filterTokens?
token returns a single token by exact address and network. filterTokens searches across tokens by name, symbol, or other criteria and returns multiple results.How do I check if a Solana token is safe?
How do I check if a Solana token is safe?
Check the
mintable and freezable fields. If mintable returns an address, the token supply can be increased. If freezable returns an address, your tokens could be frozen. Also check isScam for flagged tokens.