> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ana.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# Networks

> The networks Anafi serves, their API hosts and chain ids, the tokens on each, and what each network serves.

After you read this page, you know which networks Anafi serves, which host to call for each, which tokens a rule document can name there, and which features each network serves. For contract addresses, see [Deployments](https://docs.ana.fi/contracts/deployments.md).

## The networks

Anafi has one deployment for each network. The network token, for example `polygon`, names the network everywhere: in the API host, in the dapp URL, in the SDK config and in the deployment file.

| Network token | Name | Chain id | API host | Dapp URL | Native coin | Type |
| - | - | - | - | - | - | - |
| `polygon` | Polygon PoS | 137 | `https://api.polygon.ana.fi` | `https://app.ana.fi/polygon/` | `POL` | Mainnet |
| `xlayer` | X Layer | 196 | `https://api.xlayer.ana.fi` | `https://app.ana.fi/xlayer/` | `OKB` | Mainnet |
| `polygon-amoy` | Polygon Amoy testnet | 80002 | `https://api.polygon-amoy.ana.fi` | `https://app.ana.fi/polygon-amoy/` | `POL` | Testnet |

Spell the token exactly as the table does. The SDK type `Network` also names `anvil`, `ethereum-sepolia`, `ethereum` and `xlayer-testnet`. Anafi has no deployment on these networks, and no API host answers for them.

> [!WARNING]
>
> Use `polygon-amoy` for tests. On `polygon` and `xlayer`, the coins and tokens have real value.

## What each network serves

| Feature | `polygon` | `xlayer` | `polygon-amoy` |
| - | - | - | - |
| `safe_module` accounts | Yes | Yes | Yes |
| `erc20_allow` accounts | Yes | Yes | Yes |
| Triggers: `calendar`, `periodic`, `at_fixed_time`, `incoming_tx`, `outgoing_tx`, `price_crossed` | Yes | Yes | Yes |
| Actions: `send_one`, `send_batch`, `notify` | Yes | Yes | Yes |
| Action: `exchange` | Yes | Yes | No. The engine refuses a document with an `exchange` at the stage step. |
| Action: `off_ramp` | No. The engine refuses it at the stage step. | No. The engine refuses it at the stage step. | Yes, for a `safe_module` account only. The token is `EURe`. |
| Fee tokens | `POL`, `USDC`, `USDC.e`, `USDT0` | `OKB`, `USDG`, `USDT0`, `USDC` | `POL`, `USDC` |

Some limits apply to the account kind on every network:

* An `erc20_allow` account cannot send, sell or buy the native coin.
* An `erc20_allow` account cannot have an `off_ramp` action.
* An `erc20_allow` document must set `global.fees_method` to an ERC-20 fee token.

See [Accounts](https://docs.ana.fi/concepts/accounts.md) for the full comparison, and [Fees](https://docs.ana.fi/concepts/fees.md) for the fee tokens.

## Tokens on each network

A rule document names a token by its symbol. The symbol is case-sensitive: `xETH`, `WETH` and `ETH` are 3 different assets. Each table below gives the contract and the decimals that Anafi uses on that network. Pass the symbol and the contract of each row to the SDK in the `erc20s` field of `createAnafiClient`, and the native coin in the `native` field.

A token in a table can still lack a swap route. A token that a table does not list has no contract on that network for Anafi, so a document cannot send it there.

### `polygon`

The native coin is `POL`, with 18 decimals and no contract address.

| Symbol | Contract | Decimals |
| - | - | - |
| `USDC` | `0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359` | 6 |
| `USDC.e` | `0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174` | 6 |
| `USDT0` | `0xc2132D05D31c914a87C6611C10748AEb04B58e8F` | 6 |
| `WETH` | `0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619` | 18 |
| `WBTC` | `0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6` | 8 |
| `LINK` | `0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39` | 18 |
| `AAVE` | `0xD6DF932A45C0f255f85145f286eA0b292B21C90B` | 18 |
| `EURe` | `0xE0aEa583266584DafBB3f9C3211d5588c73fEa8d` | 18 |

Polygon PoS has 2 contracts whose `symbol()` is `USDC`. `USDC` is the natively issued contract. `USDC.e` is the older contract that was bridged from Ethereum. A rule on `USDC` never matches a `USDC.e` transfer, and the reverse is also true. The `USDT0` contract answers `USD₮0` for `symbol()`, and the rule language spells it `USDT0`.

### `xlayer`

The native coin is `OKB`, with 18 decimals and no contract address. Ether on X Layer is the ERC-20 `xETH`.

| Symbol | Contract | Decimals |
| - | - | - |
| `USDT0` | `0x779Ded0c9e1022225f8E0630b35a9b54bE713736` | 6 |
| `USDC` | `0xB6CEceAB302E2E4948951eE7843FC24E92933061` | 6 |
| `USDG` | `0x4ae46a509F6b1D9056937BA4500cb143933D2dc8` | 6 |
| `PYUSD` | `0x87b4a8176B3Df6b71e26CC095edcAf4Db07506B4` | 6 |
| `USDe` | `0x5d3a1Ff2b6BAb83b63cd9AD0787074081a52ef34` | 18 |
| `sUSDe` | `0x211Cc4DD073734dA055fbF44a2b4667d5E5fE5d2` | 18 |
| `frxUSD` | `0x80Eede496655FB9047dd39d9f418d5483ED600df` | 18 |
| `xETH` | `0xE7B000003A45145decf8a28FC755aD5eC5EA025A` | 18 |
| `xBTC` | `0xb7C00000bcDEeF966b20B3D884B98E64d2b06b4f` | 8 |
| `xSOL` | `0x505000008DE8748DBd4422ff4687a4FC9bEba15b` | 9 |
| `LINK` | `0x8aF9711B44695a5A081F25AB9903DDB73aCf8FA9` | 18 |
| `rsETH` | `0x1B3a9A689Ba7555F9D7984D7Ad4025574Ed5A0f9` | 18 |
| `uniBTC` | `0xd3c8dA379d71a33BfEE8875F87Ac2748bEB1d58d` | 8 |
| `wSPYx` | `0xE7E553Cd128F0011777323A0b44a7b96EA1CB540` | 18 |
| `wNVDAx` | `0xa8ddb5Cd96b5222AFe198316E9A57CAA642850D5` | 18 |
| `PAXGy` | `0x6c6494Fd9962eB98B94ffA48F6679058F820700e` | 18 |

X Layer also has an older bridged USDC and an older bridged USDT. Anafi does not register them. A `USDC` send never goes to the bridged USDC, and a transfer of it does not match a `USDC` rule.

### `polygon-amoy`

The native coin is `POL`, with 18 decimals and no contract address. Testnet `POL` has no value.

| Symbol | Contract | Decimals |
| - | - | - |
| `USDC` | `0x41E94Eb019C0762f9Bfcf9Fb1E58725BfB0e7582` | 6 |
| `EURe` | `0xeD5D0B6C5BEFfDd607639094397C223536B0Bae7` | 18 |

`USDC` on Amoy is the test USDC of its issuer. `EURe` is the token that an `off_ramp` action burns on this network.

## Read the live answers

The tables above show the code of today. Your app can read the live state of a network itself.

| Question | How to read it |
| - | - |
| Is the API host up? | `GET /health` on the API host. It answers `200` with `"status": "ok"`. |
| Which fee tokens, fee rate and floors apply now? | `GET /api/fees`, or `fetchFeeTerms()` in the SDK. The `feeTokens` field lists the fee tokens of the network. See [Fees](https://docs.ana.fi/concepts/fees.md). |
| Which adapters are live? | Call `delegationAdapters()` on the `AnafiRegistry` of the network, or `readLiveDelegationAdapters()` in the SDK. An adapter that the registry does not list serves no account. |
| Does the ERC20Allow adapter run swaps? | Call `swapExecutor()` on the ERC20Allow adapter, or `readErc20AllowSwapSupport()` in the SDK. The zero address means no swaps. |
| Which document does an account have? | Call `commitments(account)` on the `AnafiDslRegistry`, or `readDslCommitment(account)` in the SDK. |

```sh theme={null}
curl -s https://api.polygon-amoy.ana.fi/api/fees
```

A live answer outranks the tables on this page. For example, the registry list of adapters can change. Read the list before you offer an account kind to a user.

## Related pages

* [Deployments](https://docs.ana.fi/contracts/deployments.md): the contract addresses of each network.
* [Accounts](https://docs.ana.fi/concepts/accounts.md): the two account kinds.
* [Fees](https://docs.ana.fi/concepts/fees.md): fee tokens, the fee rate and the floor.
* [API introduction](https://docs.ana.fi/api-reference/introduction.md): the API hosts and the routes.


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