> ## 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.

# Solana API

> Access real-time Solana token prices, trading pairs, wallet analytics, and live WebSocket subscriptions through the Codex API.

High-performance blockchain powering the largest memecoin and launchpad ecosystem. Codex provides comprehensive coverage of Solana tokens, trading pairs, wallet analytics, and real-time launchpad events across Pump.fun, LaunchLab, Meteora, and more.

## Supported Networks

| Network | Chain ID     | Status |
| ------- | ------------ | ------ |
| Solana  | `1399811149` | Live   |

<Tip>
  Filter queries to Solana by passing `network: 1399811149`.
</Tip>

## Supported APIs

### Token API

* [Get Token Prices on Solana](/api-reference/queries/gettokenprices) — Retrieve current USD prices for any token
* [Search and Filter Tokens on Solana](/api-reference/queries/filtertokens) — Discover trending tokens, filter by liquidity, volume, and market cap
* [Get OHLCV Chart Data on Solana](/api-reference/queries/gettokenbars) — Fetch candlestick price data for any token
* [Get Token Sparklines on Solana](/api-reference/queries/tokensparklines) — Retrieve sparkline chart data for tokens
* [Get Top Traders for a Token on Solana](/api-reference/queries/tokentoptraders) — Find the most active traders for any token

### Pair & Trading API

* [Filter Trading Pairs on Solana](/api-reference/queries/filterpairs) — Search pairs by liquidity, volume, or token
* [Get Detailed Pair Stats on Solana](/api-reference/queries/getdetailedpairstats) — Fetch comprehensive trading metrics for any pair
* [Get Token Events on Solana](/api-reference/queries/gettokenevents) — Track buys and sells in real-time
* [List Pairs for a Token on Solana](/api-reference/queries/listpairsfortoken) — Find all trading pairs for a specific token
* [Get Pair Metadata on Solana](/api-reference/queries/pairmetadata) — Retrieve metadata for any trading pair

### Wallet API

* [Get Token Holders on Solana](/api-reference/queries/holders) — Query token holders with balances
* [Get Top 10 Holder Concentration on Solana](/api-reference/queries/top10holderspercent) — Check how concentrated a token's supply is among top holders
* [Filter Wallets on Solana](/api-reference/queries/filterwallets) — Discover active traders and smart money wallets
* [Get Wallet Balances on Solana](/api-reference/queries/balances) — Retrieve token balances for any wallet

### Launchpad API

Solana hosts the largest launchpad ecosystem including Pump.fun, LaunchLab, Meteora, and more.

* [Get Newly Launched Tokens on Solana](/api-reference/queries/filtertokens) — Find the latest token launches across all Solana launchpads
* [Subscribe to Live Launchpad Events on Solana](/api-reference/subscriptions/onlaunchpadtokeneventbatch) — Stream real-time launch events across all Solana launchpads
* [Subscribe to Individual Token Events on Solana](/api-reference/subscriptions/onlaunchpadtokenevent) — Track events for a specific launchpad token

<Info>
  See dedicated launchpad pages for [Pump.fun](/launchpads/pump-fun), [LaunchLab](/launchpads/launchlab), and [Meteora](/launchpads/meteora) for protocol-specific queries.
</Info>

### Real-time WebSocket API

* [Subscribe to Price Updates on Solana](/api-reference/subscriptions/onpriceupdated) — Get real-time token price changes
* [Subscribe to Trade Events on Solana](/api-reference/subscriptions/oneventscreated) — Stream live swap events for any token
* [Subscribe to Chart Updates on Solana](/api-reference/subscriptions/onbarsupdated) — Get live candlestick chart data
* [Subscribe to Pair Metadata Updates on Solana](/api-reference/subscriptions/onpairmetadataupdated) — Track pair metadata changes in real-time

## Try It in the Explorer

Test any Solana query directly in the [Codex GraphQL Explorer](/explore).
