> For the complete documentation index, see [llms.txt](https://docs-unified.crypto-chief.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-unified.crypto-chief.com/getting-started/networks-and-identifiers.md). Agents can also search and read this documentation through its [MCP server](https://docs-unified.crypto-chief.com/~gitbook/mcp).

# Networks and Identifiers

## Networks and Identifiers

### Network codes

Every network is named by its processing code — the same code as in Crypto Processing, the Swap API and EventStream. Responses always carry the code.

| Code                   | Family   | Name                    | Testnet | Chain ID | Native coin | Decimals | In EventStream |
| ---------------------- | -------- | ----------------------- | ------- | -------- | ----------- | -------- | -------------- |
| `ETH_MAINNET`          | `evm`    | Ethereum                | No      | 1        | ETH         | 18       | Yes            |
| `ETH_SEPOLIA`          | `evm`    | Ethereum Sepolia        | Yes     | 11155111 | ETH         | 18       | Yes            |
| `BSC_MAINNET`          | `evm`    | BNB Smart Chain         | No      | 56       | BNB         | 18       | Yes            |
| `BSC_TESTNET`          | `evm`    | BNB Smart Chain Testnet | Yes     | 97       | BNB         | 18       | Yes            |
| `POLYGON_MAINNET`      | `evm`    | Polygon                 | No      | 137      | POL         | 18       | Yes            |
| `POLYGON_AMOY`         | `evm`    | Polygon Amoy            | Yes     | 80002    | POL         | 18       | Yes            |
| `ARBITRUM_ONE`         | `evm`    | Arbitrum One            | No      | 42161    | ETH         | 18       | Yes            |
| `ARBITRUM_SEPOLIA`     | `evm`    | Arbitrum Sepolia        | Yes     | 421614   | ETH         | 18       | Yes            |
| `OPTIMISM_MAINNET`     | `evm`    | OP Mainnet              | No      | 10       | ETH         | 18       | Yes            |
| `OPTIMISM_SEPOLIA`     | `evm`    | OP Sepolia              | Yes     | 11155420 | ETH         | 18       | Yes            |
| `AVAX_MAINNET`         | `evm`    | Avalanche C-Chain       | No      | 43114    | AVAX        | 18       | Yes            |
| `AVAX_TESTNET`         | `evm`    | Avalanche Fuji          | Yes     | 43113    | AVAX        | 18       | Yes            |
| `TRON_MAINNET`         | `tron`   | TRON                    | No      | —        | TRX         | 6        | Yes            |
| `TRON_NILE`            | `tron`   | TRON Nile               | Yes     | —        | TRX         | 6        | Yes            |
| `SOLANA_MAINNET`       | `solana` | Solana                  | No      | —        | SOL         | 9        | Yes            |
| `SOLANA_DEVNET`        | `solana` | Solana Devnet           | Yes     | —        | SOL         | 9        | No             |
| `TON_MAINNET`          | `ton`    | TON                     | No      | —        | GRAM        | 9        | Yes            |
| `TON_TESTNET`          | `ton`    | TON Testnet             | Yes     | —        | GRAM        | 9        | Yes            |
| `XRP_MAINNET`          | `xrp`    | XRP Ledger              | No      | —        | XRP         | 6        | Yes            |
| `XRP_TESTNET`          | `xrp`    | XRP Ledger Testnet      | Yes     | —        | XRP         | 6        | Yes            |
| `BTC_MAINNET`          | `utxo`   | Bitcoin                 | No      | —        | BTC         | 8        | Yes            |
| `BTC_TESTNET_4`        | `utxo`   | Bitcoin Testnet4        | Yes     | —        | BTC         | 8        | Yes            |
| `LITECOIN_MAINNET`     | `utxo`   | Litecoin                | No      | —        | LTC         | 8        | Yes            |
| `DOGECOIN_MAINNET`     | `utxo`   | Dogecoin                | No      | —        | DOGE        | 8        | Yes            |
| `BITCOIN_CASH_MAINNET` | `utxo`   | Bitcoin Cash            | No      | —        | BCH         | 8        | Yes            |

[`GET /v1/networks`](https://docs-unified.crypto-chief.com/api-reference/networks.md) returns the same list with capabilities, history bounds and the current height of each network.

#### CAIP-2 aliases

Wherever a network code is accepted, its CAIP-2 identifier is accepted too: `eip155:1` means `ETH_MAINNET`, `eip155:56` means `BSC_MAINNET`. The `caip2` field of each network in `GET /v1/networks` is the alias it accepts, or `null` where the network has none. Responses always use the processing code.

#### Selecting networks

| Where                                                                                                                                                                | Rule                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| `{network}` in a path                                                                                                                                                | One code or CAIP-2 alias                                                                                                            |
| `networks` on address endpoints and in `selection.networks` of [event search](https://docs-unified.crypto-chief.com/api-reference/events.md)                         | Comma-separated codes, or `mainnets`, or `testnets`. Without it, an address endpoint reads every mainnet where the address is valid |
| `network` on [UTXO](https://docs-unified.crypto-chief.com/api-reference/utxos.md) and [xpub](https://docs-unified.crypto-chief.com/api-reference/xpubs.md) endpoints | Required, one code: Bitcoin-family networks share address and xpub formats                                                          |

An unknown code is `400 UNKNOWN_NETWORK`. A known network that does not offer the operation is reported per network as `unsupported`, or, when no requested network offers it, `422 UNSUPPORTED_CAPABILITY` ([Partial Responses](https://docs-unified.crypto-chief.com/getting-started/partial-responses.md)).

{% hint style="info" %}
The default `networks` reads every mainnet where the address is valid: six for an EVM address. Balances are charged per network ([Billing](https://docs-unified.crypto-chief.com/getting-started/billing.md)), so pass `networks` when you know where the funds are.
{% endhint %}

### Addresses

Responses always carry the **canonical** form of an address: the same form as EventStream events. Requests accept any valid form; [`GET /v1/addresses/{address}`](https://docs-unified.crypto-chief.com/api-reference/addresses.md) returns the canonical form and the other forms in `formats`.

| Family / network               | Accepted on input                                                                    | Canonical in responses                                          | In `formats`                   |
| ------------------------------ | ------------------------------------------------------------------------------------ | --------------------------------------------------------------- | ------------------------------ |
| `evm`                          | `0x` + 40 hex characters, any case (EIP-55 or not)                                   | `0x` + 40 lowercase hex                                         | —                              |
| `tron`                         | Base58Check `T…`, or 42 hex characters starting with `41`                            | `41` + 40 lowercase hex, without `0x`                           | `base58`                       |
| `solana`                       | Base58 public key                                                                    | Base58, case-preserved                                          | —                              |
| `ton`                          | Raw `<workchain>:<64 hex>`, or 48-character user-friendly `EQ…`, `UQ…`, `kQ…`, `0Q…` | Raw `<workchain>:<64 lowercase hex>`                            | `bounceable`, `non_bounceable` |
| `xrp`                          | Classic `r…`, or X-address `X…` / `T…`                                               | Classic `r…`; the tag of an X-address goes to `destination_tag` | `classic`                      |
| `BTC_MAINNET`, `BTC_TESTNET_4` | Bech32/Bech32m (`bc1…`, `tb1…`), Base58Check (`1…`, `3…`; `m…`, `n…`, `2…`)          | Lowercase Bech32/Bech32m; Base58Check case-preserved            | —                              |
| `LITECOIN_MAINNET`             | `ltc1…`, `L…`, `M…`, legacy `3…`                                                     | Lowercase `ltc1…`, `L…`, `M…` (legacy `3…` becomes `M…`)        | —                              |
| `DOGECOIN_MAINNET`             | `D…`, `9…`, `A…`                                                                     | Case-preserved                                                  | —                              |
| `BITCOIN_CASH_MAINNET`         | CashAddr `bitcoincash:q…` / `bitcoincash:p…`, legacy `1…` / `3…`                     | Lowercase CashAddr with the `bitcoincash:` prefix               | `legacy`                       |

Examples of one address in several forms:

| Network        | Input                                              | Canonical                                                            |
| -------------- | -------------------------------------------------- | -------------------------------------------------------------------- |
| `TRON_MAINNET` | `TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL`               | `418840e6c55b9ada326d211d818c34a994aeced808`                         |
| `TON_MAINNET`  | `UQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqEBI` | `0:83dfd552e63729b472fcbcc8c45ebcc6691702558b68ec7527e1ba403a0f31a8` |
| `XRP_MAINNET`  | `XV5kHfQmzDQjbFNv4jX3FX9Y7ig5QhfvyjHvyHtStf6eDKf`  | `rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe`, destination tag `104233`       |

Bounceable and non-bounceable TON forms are the same account. In a URL path, write a user-friendly TON address in its URL-safe form (`-` and `_`, as wallets show it) or the raw form; the form with `+` and `/` is refused. A legacy Base58 address such as `3…` can be valid on more than one Bitcoin-family network, which is why UTXO and xpub endpoints take exactly one `network`.

An address that is valid on none of the requested networks is `400 INVALID_ADDRESS`.

### Assets

An asset is named `{network}/{asset_id}`, where `asset_id` is the `asset.id` of responses and of EventStream events:

| Asset                      | `asset_id`                                               | Example                                                                          |
| -------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------- |
| Native coin                | `native`                                                 | `ETH_MAINNET/native`, `TON_MAINNET/native`                                       |
| EVM token                  | Contract, lowercase `0x…`                                | `ETH_MAINNET/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48`                         |
| TRON token                 | Contract, `41…` hex                                      | `TRON_MAINNET/41a614f803b6fd780986a42c78ec9c7f77e6ded13c`                        |
| Solana token               | Mint                                                     | `SOLANA_MAINNET/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v`                    |
| TON Jetton                 | Jetton master, raw form — never a holder's Jetton wallet | `TON_MAINNET/0:b113a994b5024a16719f69139328eb759596c38a25f59028b146fecdc3621dfe` |
| XRP Ledger issued currency | `<CURRENCY>:<issuer>`                                    | `XRP_MAINNET/USD:rhub8VRN55s94qWKDv6jmDy1pUykJzF3wq`                             |
| NFT on EVM and TRON        | Collection contract; the token is `asset.token_id`       | `ETH_MAINNET/0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d`                         |
| NFT on Solana              | Mint                                                     | `SOLANA_MAINNET/<mint>`                                                          |
| NFT on TON                 | NFT item address                                         | `TON_MAINNET/0:779dcc815138d9500e449c5291e7f12738c23d575b5310000f6a253bd607384e` |
| NFT on XRP Ledger          | NFTokenID                                                | `XRP_MAINNET/<NFTokenID>`                                                        |

`asset.standard` tells the token standard: `native`, `erc20`, `erc721`, `erc1155`, `trc20`, `trc721`, `spl`, `token2022`, `metaplex`, `jetton`, `ton_nft`, `xrp_iou`, `xrp_nft`.

### Transfers, transactions and blocks

| Object          | Identifier                                                                                                             |
| --------------- | ---------------------------------------------------------------------------------------------------------------------- |
| Transfer, event | `(network, id)`. `id` is 64 lowercase hex characters, equal to the `occurrence_id` of the same movement in EventStream |
| Transaction     | `(network, hash)`; on TON also `tx_ref` — `<account>\|<lt>\|<hash>`                                                    |
| Block           | `(network, height)` or `(network, hash)`                                                                               |
| UTXO            | `(network, txid, vout)`                                                                                                |

Hash formats are those of EventStream:

| Family   | Transaction hash        | Block hash              |
| -------- | ----------------------- | ----------------------- |
| `evm`    | `0x` + 64 lowercase hex | `0x` + 64 lowercase hex |
| `tron`   | 64 lowercase hex        | 64 lowercase hex        |
| `solana` | Base58 first signature  | Base58                  |
| `ton`    | `0x` + 64 lowercase hex | `0x` + 64 lowercase hex |
| `xrp`    | 64 uppercase hex        | 64 uppercase hex        |
| `utxo`   | 64 lowercase hex        | 64 lowercase hex        |

`block.height` is the block number on EVM, TRON and UTXO networks, the validated ledger index on XRP Ledger, the slot on Solana and the masterchain `seqno` on TON.

A TON transaction is looked up by its hash or its `tx_ref`; responses always include `tx_ref`.

### The native coin of TON

The network is TON (`TON_MAINNET`, `TON_TESTNET`); its native coin is **GRAM**:

```json
{
  "network": "TON_MAINNET",
  "id": "native",
  "kind": "native",
  "standard": "native",
  "contract": null,
  "token_id": null,
  "symbol": "GRAM",
  "decimals": 9,
  "name": "Gram",
  "logo_url": null,
  "listed": true,
  "spam": { "status": "clean", "reasons": [] },
  "flags": []
}
```

Its base unit is the nanoton, 10⁻⁹ GRAM. Match the native coin by `asset.id` (`"native"`), not by symbol.
