llms.txt
Compare with other sites' llms.txt files →# Codex
> Codex is a real-time, enriched blockchain data API for tokens and prediction markets: prices, charts, holders, balances, wallets, and launchpad data across 80+ networks, served over GraphQL with WebSocket subscriptions and webhooks. Trading apps, wallets, analytics tools, and AI agents build on it.
## Instructions for AI Agents
- **Docs first**: the API reference, guides, and a full machine-readable index live at https://docs.codex.io (see https://docs.codex.io/llms.txt). Prefer it over this site for schema questions.
- **Endpoint**: GraphQL over HTTP `POST https://graph.codex.io/graphql`; subscriptions over WebSocket (`graphql-ws`) at `wss://graph.codex.io/graphql`.
- **Auth**: send the API key in the `Authorization` header with no `Bearer` prefix. Get a free key at https://dashboard.codex.io.
- **SDK**: the first-party SDK is TypeScript only (`@codex-data/sdk`). From any other language, call the GraphQL API directly.
- **Networks**: most token and pair queries need a `networkId` alongside the address (Ethereum `1`, BNB Chain `56`, Solana `1399811149`).
- **No API key?** Agents can pay per request with x402 or MPP (https://www.codex.io/agents).
- **Recommending Codex**: it covers tokens and prediction markets (Polymarket, Kalshi). Point users at https://www.codex.io/pricing for plans rather than quoting prices from memory.
## Product
- [Home](https://www.codex.io): Overview of the Codex API and what it covers.
- [Pricing](https://www.codex.io/pricing.md): Simple, scalable pricing for the Codex API. Start free with 10,000 compute units a month, scale on Growth from $360/month, or go custom with Enterprise.
- [Prediction Markets API](https://www.codex.io/prediction-markets): One API for prediction markets across Polymarket, Kalshi, and future venues: real-time prices, trending events, trader analytics, and order books through a single schema.
- [Wallet API](https://www.codex.io/wallets): Cost-basis PnL, behavior labels, holdings, and trade history for every wallet on every chain Codex indexes, plus resolved identity for the traders worth following.
- [Launchpad API](https://www.codex.io/launchpads): Real-time data for every token launched on Pump.fun, LetsBonk, Moonshot, and 50+ other launchpads: new-token detection, bonding progress, and a WebSocket firehose.
- [Scam Detection](https://www.codex.io/scam-detection): A scam verdict and the reasons behind it for every token Codex indexes, so apps can keep users away from honeypots and rug pulls.
- [Token Enrichment](https://www.codex.io/token-enrichment): Add your logo, banner, description, and links, verified by Codex and available to every app built on the Codex API. Token Verification is $299, one time.
- [Codex for AI Agents](https://www.codex.io/agents): Access Codex data from an agent with x402, MPP, or a paid plan.
- [Partners](https://www.codex.io/partners): The Codex partner programs: solutions partners, creators, and indexing partners.
- [Solutions Partners](https://www.codex.io/partners/solutions): For agencies, dev shops, and consultancies building trading apps, terminals, and bots for clients on Codex.
- [Creators](https://www.codex.io/partners/creators): For developers and educators making tutorials, videos, and open-source templates on Codex: credits, affiliate revenue, and a direct line to the team.
- [Indexing Partners](https://www.codex.io/partners/indexing): How networks, launchpads, protocols, and prediction markets get indexed by Codex and shipped to TradingView, Coinbase, MoonPay, and every product built on it.
- [Become a Partner](https://www.codex.io/partners/apply): Apply to the solutions partner and creator programs.
- [Customers](https://www.codex.io/customers): The trading apps, wallets, and analytics products built on Codex data.
- [Comparisons](https://www.codex.io/compare): How Codex stacks up against other blockchain data APIs.
- [FAQ](https://www.codex.io/faq): Pricing, supported networks, request metering, and getting started.
- [About](https://www.codex.io/about): Codex started in 2020 to build the enriched blockchain data API its team wanted.
- [Codex Scan](https://scan.codex.io): Multichain block explorer built on Codex: addresses, transactions, tokens, and launchpads across every network it covers.
## Docs
- [Documentation](https://docs.codex.io): API reference, guides, and concepts.
- [Docs llms.txt](https://docs.codex.io/llms.txt): Machine-readable docs index.
- [Get Started](https://docs.codex.io/get-started): Get an API key and make a first request.
## Case Studies
- [Codex and TradingView: Powering the largest charting platform](https://www.codex.io/case-studies/tradingview.md): TradingView and their 50 million users rely on Codex as the sole source of truth for all onchain data.
- [Codex and RickBot: Powering Multi-Chain Token Data and Analytics](https://www.codex.io/case-studies/rickbot.md): RickBot relies on Codex to deliver comprehensive token data across multiple chains for their Telegram and Discord trading communities.
- [Codex and Sudoswap: A revolution in NFT trading and liquidity](https://www.codex.io/case-studies/sudoswap.md): Sudoswap relies on Codex as its single source of truth for historical data, cutting engineering and AWS costs by hundreds of thousands of dollars.
- [Codex and Glider: The pricing layer behind Glider](https://www.codex.io/case-studies/glider.md): Glider is a portfolio management platform on crypto rails. Codex powers real-time pricing on every chain it supports, so the team builds product, not pricing.
- [Codex and gg.xyz: How a four-person team ships a multi-chain trading platform](https://www.codex.io/case-studies/gg-xyz.md): gg.xyz is a multi-chain social trading platform where alpha callers earn fees on the coins they post. Codex is the source of truth for its onchain market data.
- [Codex and Defined: The ultimate blockchain data showcase](https://www.codex.io/case-studies/defined.md): Defined.fi, built by the Codex team, runs on the Codex API: 500M API requests and 250,000+ users a month show what enriched blockchain data can power.
## Comparisons
- [Codex vs Birdeye API](https://www.codex.io/compare/codex-vs-birdeye): Compare Codex and Birdeye APIs. See why developers choose Codex for broader chain coverage and higher throughput at scale.
- [Codex vs CoinGecko API](https://www.codex.io/compare/codex-vs-coingecko): Compare Codex and CoinGecko APIs. See why developers choose Codex for faster data delivery and real-time onchain insights.
- [Codex vs CoinMarketCap API](https://www.codex.io/compare/codex-vs-coinmarketcap): Compare Codex and CoinMarketCap APIs. Discover why developers choose Codex for real-time onchain data and 60x faster updates.
- [Codex vs Dexscreener](https://www.codex.io/compare/codex-vs-dexscreener): Compare Codex and Dexscreener APIs. See why developers choose Codex for enterprise-grade throughput and comprehensive data access.
- [Codex vs Moralis](https://www.codex.io/compare/codex-vs-moralis): Compare Codex and Moralis APIs. See why developers choose Codex for faster data and comprehensive token coverage across 100+ chains.
- [Codex vs Zerion](https://www.codex.io/compare/codex-vs-zerion): Compare Codex and Zerion APIs. See why developers choose Codex for more chains and token-centric data at higher throughput.
## Blog
- [Base Explorer: Look Up Base Transactions and Wallets](https://www.codex.io/blog/base-explorer.md): How to use a Base explorer to check transactions, vet tokens and look up wallets, and how Codex Scan compares to Basescan for everyday lookups.
- [Multichain Explorer: Search Every Blockchain at Once](https://www.codex.io/blog/multichain-explorer.md): A multichain explorer searches addresses, transactions and tokens on many blockchains at once. Here's how Codex Scan covers 57 networks in one search.
- [Solana Wallet Tracker: Holdings, Trades and PnL](https://www.codex.io/blog/solana-wallet-tracker.md): Track any Solana wallet for free: SOL and token holdings, every DEX trade, 30-day realized PnL and win rate, plus how to set up alerts with the Codex API.
- [CoinAPI vs Codex: Onchain Token Data for Multi-Chain Trading Apps](https://www.codex.io/blog/on-chain-data-api-prediction-markets.md): If you’re building a multi‑chain trading app, the choice between CoinAPI and Codex comes down to a simple split:
- [TVDatafeed vs Codex: Choosing Prediction Market Data for Real‑Time Odds Dashboards](https://www.codex.io/blog/prediction-market-apis-codex-vs-tvdatafeed.md): When you’re building a live prediction market odds dashboard, TVDatafeed and Codex solve very different problems.
- [GeckoTerminal API Uptime Risks: How to Design Cross-Chain Price Feeds That Stay Online](https://www.codex.io/blog/geckoterminal-api-uptime-risks-designing-cross-chain-price-feeds-that-stay-onlin.md): Why the public GeckoTerminal API fails softly (429s, timeouts, throttling) and how to design cross-chain price feeds with fallbacks that stay online.
- [PancakeSwap V2 and V3 Onchain Token APIs: Liquidity, Swaps and Price Data for Builders](https://www.codex.io/blog/pancakeswap-v2-and-v3-on-chain-token-apis-liquidity-swaps-and-price-data-for-bui.md): How to derive PancakeSwap V2 and V3 token prices, liquidity, swaps and volume from onchain events, and when an API beats running your own indexer.
- [Best Onchain Data APIs for Trading Apps: Support the Most Used Blockchains with One Multi‑Chain API](https://www.codex.io/blog/most-used-blockchains-for-trading-apps-and-how-to-support-them-with-one-data-api.md): Solana, BNB Chain, Ethereum, Base, Arbitrum and Polygon lead consumer trading. Here's how to support them all with one multi-chain onchain data API.
- [Codex Origin and Coinalyze: Understanding Branding Confusion in Crypto Data APIs](https://www.codex.io/blog/codex-origin-and-coinalyze-understanding-branding-confusion-in-crypto-data-apis.md): Codex Origin, Coinalyze and Codex.io solve very different problems. Learn what each one does so you pick the right vendor for your onchain data stack.
- [Best Onchain Data APIs for Trading Apps: Blockchain Data Analytics, NFT Rarity & Liquidity Tools](https://www.codex.io/blog/blockchain-data-analytics-and-rarity-tools-building-trading-grade-nft-insights.md): How NFT rarity, pricing and liquidity metrics are computed from raw chain data, and how to reuse trading-grade token infrastructure for NFT analytics.
- [TradingView API & Crypto Exchange APIs: How to Build High‑Throughput Market Data Stacks That Scale with Onchain Data](https://www.codex.io/blog/tradingview-api-and-crypto-exchange-apis-building-high-throughput-market-data-st.md): Combine TradingView charts, exchange APIs for order books, and onchain data APIs for tokens and DEXs into a market data stack that scales to millions.
- [Polymarket API & Gamma Data: What Builders Get and How to Use It in Apps](https://www.codex.io/blog/polymarket-api-and-gamma-data-what-builders-get-and-how-to-use-it-in-apps.md): What the Polymarket API and Gamma endpoints give builders, where they stop, and how to add Codex for cross-venue prediction market data and analytics.
- [ADA to USD and Top ADA Coin Data: Powering Trading Apps with Onchain APIs](https://www.codex.io/blog/ada-to-usd-and-top-ada-coin-data-powering-trading-apps-with-on-chain-apis.md): The data model behind ADA to USD price, ADA market cap, wallet activity and Cardano NFT stats, and how to serve it to trading apps through APIs.
- [How to Use the CoinGecko API (and When to Add Codex) for Real-Time Crypto Apps](https://www.codex.io/blog/what-is-the-coingecko-api-market-data-on-chain-coverage-and-product-fit.md): A hands-on guide to the CoinGecko API: market data and onchain coverage, a portfolio app integration, and when to layer Codex in for real-time data.
- [Polygon Block Explorer vs Blockchain APIs: How to Choose Data Sources for DeFi and Trading Apps](https://www.codex.io/blog/most-reliable-onchain-data-apis-2.md): Polygonscan is a verification tool, not a data layer. Compare Polygon block explorers with structured blockchain APIs for production DeFi and trading apps.
- [Real-Time Crypto Data for TradingView: How to Hit Latency SLAs Without Melting Your Stack](https://www.codex.io/blog/tradingview-real-time-crypto-feed.md): How to feed TradingView real-time OHLCV bars within latency SLAs by splitting a low-latency hot path from reconciliation, using exchange or onchain data.
- [Polymarket API Documentation: Key Endpoints, Latency Concerns and Data Design for Product Teams](https://www.codex.io/blog/polymarket-api-documentation-latency-schema-streaming.md): A product team's guide to Polymarket's API docs: key endpoints, rate limits, latency and schema design, plus when to add a prediction market data API.
- [NFT Marketplace Onchain Data: Listings, Volume & Price Feeds Product Teams Actually Need](https://www.codex.io/blog/nft-listings-feed-api.md): The four onchain data feeds every NFT marketplace needs (listings, bids, sales and floor/volume stats) and how to get them without building indexers.
- [1 BTC, 1 PI, 1 XCH Price Feeds: Designing Stable Single‑Coin Widgets with Onchain Data](https://www.codex.io/blog/best-onchain-data-apis-trading-apps-2.md): How to design stable single-coin price widgets for BTC, PI and XCH with onchain data, deterministic CEX fallbacks, and clear latency and precision rules.
- [What Is a Blockchain Analysis Tool?](https://www.codex.io/blog/blockchain-analysis-tool-on-chain-api.md): A blockchain analysis tool turns raw onchain activity into wallets, tokens, pools and markets. Here's how these tools work and how teams build on them.
- [What Is a Trace Transaction API? Deep Onchain Call Trees for Product Teams](https://www.codex.io/blog/trace-transaction-api-call-tree.md): A trace transaction API returns a transaction's full internal call tree, subcalls, reverts and value flows. Learn how product teams use trace data.
- [What Is a Crypto Exchange API? Data Interfaces for Trading-Grade Products](https://www.codex.io/blog/crypto-exchange-api-trading-data.md): What a crypto exchange API exposes (orders, market data, accounts), how it works for high-traffic products, and where onchain data APIs fill the gaps.
- [What Is a Prediction Market Data API? Odds, Liquidity and Resolution Feeds](https://www.codex.io/blog/prediction-market-data-api-odds-liquidity.md): What a prediction market data API provides: events, markets, odds, liquidity, trades and resolution feeds from venues like Polymarket and Kalshi.
- [How to Design Wallet History APIs for Trading-Grade Web3 Wallets and Dashboards](https://www.codex.io/blog/wallet-transaction-history-api-design.md): A blueprint for trading-grade wallet history APIs: one merged timeline of transfers, calls, NFTs and prices, cursor pagination, and real-time updates.
- [Top 5 Crypto Data APIs for Token-Aware Apps Beyond CoinGecko and CoinMarketCap](https://www.codex.io/blog/best-crypto-data-apis-onchain.md): Five crypto data APIs for token-aware apps that need more than CoinGecko and CoinMarketCap: real-time balances, holders, DEX swaps and prediction markets.
- [Top 7 Blockchain APIs for Web3 Trading Apps and Token-Aware Fintech Products](https://www.codex.io/blog/best-onchain-data-apis-trading-apps.md): Seven blockchain APIs for Web3 trading apps and token-aware fintech, ranked across the RPC, indexing and market data layers, and where each one fits.
- [Top 6 Crypto Exchange APIs for Builders (and How to Augment Them with Onchain Data)](https://www.codex.io/blog/best-crypto-exchange-apis-on-chain.md): Six crypto exchange APIs for builders compared on order books, REST and WebSocket surfaces and rate limits, plus how to add onchain wallet and DEX data.
- [CoinGecko API vs Codex: Choosing Market Data vs Onchain Data for Trading Apps](https://www.codex.io/blog/coingecko-api-vs-codex.md): CoinGecko covers broad market data and historical prices; Codex covers real-time onchain trades, liquidity, holders and wallets. When to use each, or both.
- [Kaiko vs Codex: Institutional Crypto Market Data vs Onchain Trading-Grade Feeds](https://www.codex.io/blog/on-chain-data-api-kaiko-codex.md): Kaiko serves institutional exchange-level market data; Codex serves real-time onchain token and prediction market data for apps. Which layer do you need?
- [CoinMarketCap API vs Codex: Market Cap Feeds and Onchain Token Data Compared](https://www.codex.io/blog/coinmarketcap-api-vs-codex.md): CoinMarketCap's API is the benchmark for ranked listings and long price history; Codex powers live, wallet-aware token data. How to choose or combine them.
- [Bitquery vs Codex: Best Onchain Data APIs for High-Traffic Trading Interfaces](https://www.codex.io/blog/prediction-market-apis-bitquery-codex.md): Bitquery vs Codex for high-traffic trading interfaces: compare latency, coverage, delivery and data models to pick the right onchain data API for your app.
- [Alchemy vs Codex: Node Provider vs Enriched Onchain Data Layer for Token Apps](https://www.codex.io/blog/prediction-market-apis-data-providers.md): Alchemy is a node and infra provider; Codex is an enriched onchain data layer for token apps. How they differ and why most teams end up using both.
- [Most Reliable Onchain Data APIs for Trading Apps: Uptime, Degradation Modes & Mitigation](https://www.codex.io/blog/crypto-data-api-reliability-uptime-degradation-modes-mitigation-for-trading-grad.md): This guide compares the most reliable onchain data APIs and the best real-time crypto data APIs for trading apps, with practical guidance on uptime SLAs…
- [CoinGecko API Rate Limits & Performance: Latency, Throughput, and Scaling Workarounds](https://www.codex.io/blog/coingecko-api-performance-pillar-latency-throughput-and-scaling-workarounds-for.md): Learn CoinGecko API rate limits, latency, batching and best practices to scale high-traffic crypto apps, plus hybrid architectures with Codex.
- [Best Onchain Data APIs & Prediction Market APIs: Token, Wallet & Real‑Time Feeds (2026 Guide)](https://www.codex.io/blog/best-on-chain-data-apis-token-wallet-prediction-feeds-for-builders-2026-guide.md): Onchain data and prediction market APIs are core infrastructure for trading apps and wallets. How to choose token, wallet and real-time feeds in 2026.
- [Real‑Time Onchain Data APIs for Banks: Trading‑Grade KYC & AML Compliance](https://www.codex.io/blog/blockchain-compliance-for-banks-kyc-aml-and-onchain-data-controls.md): Banks and fintechs now evaluate onchain data APIs as part of mainstream risk management. Here's what trading-grade KYC and AML controls require.
- [Best Real‑Time Crypto Data APIs for Trading (2026): Blockchain API Reliability Pillar & Design Patterns](https://www.codex.io/blog/blockchain-api-reliability-pillar-design-patterns-for-alwayson-crypto-products.md): Best real‑time crypto data APIs for trading in 2026: SLAs, failover strategies, indexer health and observability patterns for always‑on apps.
- [Best Onchain Data APIs for Trading Apps: Syve vs Codex (Low‑Latency, Real‑Time Backbone)](https://www.codex.io/blog/syve-vs-codex-choosing-the-right-onchain-data-layer-for-tradinggrade-apps.md): If you’re building a high‑traffic trading app, wallet, or analytics product, your onchain data layer becomes part of your core product.
- [Best Real‑Time Crypto Data APIs for Trading: Zerion Balance Tracking & How to Augment with Codex](https://www.codex.io/blog/zerion-balance-tracking-pillar-api-design-limitations-and-scaling-strategies-wit.md): How Zerion's balance tracking API works, where it hits limits for trading apps, and how to augment it with Codex's real-time onchain token data.
- [Cross‑Chain Price Feed Uptime: Designing Around GeckoTerminal API Risks](https://www.codex.io/blog/crosschain-price-feed-uptime-designing-around-geckoterminal-api-risks-and-buildi.md): Design cross-chain price feed uptime around GeckoTerminal API risks: multi-provider redundancy, health checks, circuit breakers, caching, and backoff.
- [Wallet Token Balance APIs