Chains

Avalanche C-Chain

The Avalanche C-Chain, chain 43114. The X and P chains have their own address formats and are not what this class describes.
IDavalanche07 / 36evm · AVAX
Chain / EVM

Avalanche C-Chain

"avalanche""avax""Avalanche C-Chain"

Symbol
AVAX · 18 decimals
Coin type
60
Chain ID
0xa86a
Checks
address · txid
fields set 7 / 9

Network

CAIP-2eip155:43114
Magicnone
PoWnone
RPCavalanche-c-chain-rpc.publicnode.com
Explorersnowtrace.io

Access

Createcreate("avalanche")
ResolvegetChain("avax")
CLIchains info avax
Tryplayground with a sample address

The C-Chain only, chain 43114. Avalanche's X and P chains use a different address format, and this class says nothing about them. Same for decimals: 18 is AVAX on the C-Chain.

Address format

The EVM format, shared by every EVM chain here: 0x and 40 hex digits, any case. An address that fits Avalanche C-Chain fits the other thirteen EVM chains too, and identify says so rather than picking one. The EIP-55 checksum, the one carried in letter case, is verified where there is one: mixed case has to match the hash, and an address in one case throughout passes, since it carries no checksum.

ts
import { getChain } from "@agntn/chains";

const chain = getChain("avax");
chain.assertAddress("0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984"); // returned unchanged
chain.chainId; // "0xa86a"
chain.caip2; // "eip155:43114"

Spellings

avalanche, avax, Avalanche C-Chain. The key is avalanche, the rest resolve through getChain.