> ## Documentation Index
> Fetch the complete documentation index at: https://sonar-cf3aeac7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Chains and identifiers

> Supported chains, how each surface expects a chain id, how chain ids appear in responses, and address rules.

## Supported chains

| Chain | Chain id | API id | Native token | Native address in wallet holdings | Wrapped native |
| - | - | - | - | - | - |
| Ethereum | `1` | `evm:1` | ETH (18 decimals) | `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` | WETH `0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2` |
| Base | `8453` | `evm:8453` | ETH (18 decimals) | `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` | WETH `0x4200000000000000000000000000000000000006` |
| BNB Smart Chain | `56` | `evm:56` | BNB (18 decimals) | `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` | WBNB `0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c` |
| Robinhood | `4663` | `evm:4663` | ETH (18 decimals) | `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` | `0x0bd7d308f8e1639fab988df18a8011f41eacad73` |

The `0xeeee…eeee` address is a placeholder the API uses for the native coin in [wallet holdings](https://sonar-cf3aeac7.mintlify.site/api-reference/wallet/get-wallet-holdings.md) on every chain. The native holding is flagged with `token.native: true` and priced from the wrapped-native token.

For the live list of chains with their DEXs, pool types and launchpads, call [`GET /protocols`](https://sonar-cf3aeac7.mintlify.site/api-reference/protocols/get-protocols).

> [!NOTE]
>
> **Arc (`5042`) is only partially wired.** The API knows the chain (native token USDC, 6 decimals, no wrapped native), so some routes accept `evm:5042`. It is currently **not** listed by `GET /protocols` and Pulse rejects it as an unsupported chain. Do not rely on Arc data until it is announced.

## Sending a chain id

Each surface accepts chain ids in a slightly different form.

| Surface | Parameter | Accepted forms | Example |
| - | - | - | - |
| REST, single chain | `chain` query param | `1` or `evm:1` | `?chain=8453`, `?chain=evm:8453` |
| REST, list of chains | `chains` query param (`/search`, `/protocols`, and `/health/last-swaps`, which sits at the host root rather than under `/api/v1`) | Comma-separated, each `1` or `evm:1` | `?chains=1,8453`, `?chains=evm:1,evm:8453` |
| Channel WebSocket (`/v1/ws`) | `params.chain` | `evm:<id>` only | `"chain": "evm:8453"` |
| Pulse REST views and Pulse stream | `chainId` (array of strings) | `evm:<id>` only | `"chainId": ["evm:8453"]` |
| Native Pulse, `POST /pulse` | `views[].chains` (array) | Number, `"1"` or `"evm:1"` | `"chains": [8453, "evm:1"]` |
| Multi-events stream | `params.chains` (array of strings) | `evm:<id>` only, each once | `"chains": ["evm:1", "evm:8453"]` |

### REST `chain` rules

The single `chain` parameter must match `^(evm:)?[1-9]\d*$`:

* Accepted: `1`, `8453`, `evm:1`, `evm:8453`.
* Rejected: chain names (`ethereum`, `base`), `0`, leading zeros (`08453`), hex (`0x2105`).

A rejected value returns `400 INVALID_PARAMETERS` with the message `chain: must be a chain id like 1 or evm:1`.

For `chains` lists, repeat values with commas inside one parameter (`chains=1,8453`). Each item is trimmed, an optional `evm:` prefix is removed, and it must be a positive integer.

### WebSocket `chain` rules

The WebSocket channels and the multi-events stream accept only strings matching `evm:<digits>`. A bare number or a name returns an `error` message with code `INVALID_PARAMETERS`. Its `message` is prefixed with the parameter path (`chain` on the channels, `chains.<index>` on the multi-events stream), for example:

```text theme={null}
chain: Invalid blockchain ID. Expected format: "evm:<chainId>" (e.g. "evm:1", "evm:137")
```

## Chain ids in responses

Responses do not all use the same chain format.

| Where | Field | Format | Example |
| - | - | - | - |
| Token details, markets, search, wallet holdings, protocols, Pulse tokens, multi-events swaps | `chainId` | `evm:<id>` string | `"evm:8453"` |
| Trades (REST and WebSocket trade events) | `blockchain` | Chain display name | `"Base"` |
| Market details | `blockchain` | Chain display name, or `null` | `"Ethereum"` |
| [`GET /health/last-swaps`](https://sonar-cf3aeac7.mintlify.site/api-reference/health/get-last-swaps) | `chainId` | Number | `8453` |

## Unsupported chains

The format of a chain id is validated, but a well-formed id for a chain ChainQuery does not index (for example `137`) is handled differently by each surface:

| Surface | Result |
| - | - |
| Most REST routes (token, markets, OHLCV, history, trades, market details) | `404` with a not-found code, because nothing is stored for that chain. `POST /market/details` returns `null` for that item instead |
| `GET /search`, `GET /protocols` | `200` with empty results |
| `GET /wallet/holdings` | `400 INVALID_PARAMETERS`, message `Unsupported chain: evm:137` |
| Pulse (REST and stream) | `400` / `error` with the issue `unsupported chain 137` |
| Channel WebSocket (`fast-trade`, `token-details`, `market-details`) and multi-events stream | The subscription succeeds and never delivers anything |
| Channel WebSocket `ohlcv` | `error` message with `TOKEN_NOT_FOUND` or `POOL_NOT_FOUND`, because the token or pool cannot be found |

> [!TIP]
>
> Validate chain ids on your side against the table at the top of this page, or against `GET /protocols`, rather than relying on the API to reject them.

## Addresses

| Kind | Format | Used by |
| - | - | - |
| Token or wallet address | `0x` + 40 hex characters | `address` on `/token*` and `/wallet/holdings`; `token` / `tokens` on WebSocket channels; `baseToken` on market details; `tokenAddress` and `sender` in multi-events filters |
| Pool address or pool id | `0x` + 40 hex characters, **or** `0x` + 64 hex characters | `address` on `/market/details`, `/market/ohlcv` and `/trades`; `pool` / `pools` on WebSocket channels; `poolAddress` in multi-events filters |

* Addresses are case-insensitive. Mixed-case (checksummed) input is accepted, but the checksum is **not** verified.
* Input addresses are lowercased, and every address in a response is lowercase. Compare addresses case-insensitively, or lowercase them on your side.
* The 64-hex form is a 32-byte pool id. It is used by pools that have no contract of their own, such as Uniswap V4 and PancakeSwap Infinity pools.
* An invalid address returns `400 INVALID_ADDRESS` with `must be a valid token or wallet address` (or `must be a valid token address or pool id` where pool ids are allowed). See [Responses and errors](https://sonar-cf3aeac7.mintlify.site/concepts/responses-and-errors.md).


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