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

# BNB Chain API

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

BNB Chain (BSC) is Binance's high-throughput EVM chain with one of the largest token ecosystems in crypto. Codex tracks millions of tokens and pairs including Four.meme launchpad activity, providing comprehensive DeFi data coverage across BNB Chain's extensive DEX landscape.

## Supported Networks

| Network           | Chain ID | Status |
| ----------------- | -------- | ------ |
| BNB Chain Mainnet | `56`     | Live   |

<Tip>
  Filter queries to BNB Chain by passing `network: 56`.
</Tip>

<Note>
  BNB Chain has active launchpad activity from platforms like **Four.meme**. Use `filterTokens` to discover newly launched tokens and track their early trading metrics.
</Note>

## Supported APIs

### Token API

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

### Pair & Trading API

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

### Wallet API

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

### Real-time WebSocket API

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

## Try It in the Explorer

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