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

# Unichain API

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

Unichain is Uniswap's purpose-built L2 optimized for DeFi trading with faster transactions and lower fees. Codex tracks all token and pair activity on Unichain, providing comprehensive data coverage for this trading-focused network built by the team behind the largest DEX protocol.

## Supported Networks

| Network | Chain ID | Status |
| - | - | - |
| Unichain Mainnet | `130` | Live |

> [!TIP]
>
> Filter queries to Unichain by passing `network: 130`.

## Supported APIs

### Token API

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

### Pair & Trading API

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

### Wallet API

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

### Real-time WebSocket API

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

## Try It in the Explorer

Test any Unichain query directly in the [Codex GraphQL Explorer](https://docs.codex.io/explore.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.