Skip to main content
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.

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. 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.
Use polygon-amoy for tests. On polygon and xlayer, the coins and tokens have real value.

What each network serves

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 for the full comparison, and Fees 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. 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. 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. 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.
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.