Avalanche logo

Avalanche Mainnet

RPC Endpoints

Chain ID: 0xa86a · AVAX

Other Avalanche networks:Fuji
How to add Avalanche to MetaMask or other wallets

Avalanche Mainnet uses AVAX as its native currency. Chain ID: 43114 (0xa86a). Below are 6 public RPC endpoints you can use to connect wallets, dApps, and developer tools to Avalanche Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://avalanche.drpc.org
0xa86aAVAXExplorer
Checking
https://api.avax.network/ext/bc/C/rpc
0xa86aAVAXExplorer
Checking
https://rpc.ankr.com/avalanche
0xa86aAVAXExplorer
Checking
https://avalanche.api.onfinality.io/public/ext/bc/P
0xa86aAVAXExplorer
Checking
https://rpc.swiftnodes.io/rpc/avalanche?key=demo
0xa86aAVAXExplorer
Checking
https://avax-mainnet.gateway.tatum.io
0xa86aAVAXExplorer

Connect to Avalanche Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://avalanche.drpc.org");

const network = await provider.getNetwork();
console.log(network.chainId); // 43114n

Avalanche Mainnet — common questions

What is the RPC URL for Avalanche Mainnet?
There are 6 public RPC endpoints for Avalanche Mainnet, including https://avalanche.drpc.org. See the full list in the table above.
What is the Chain ID for Avalanche Mainnet?
The Chain ID for Avalanche Mainnet is 43114 (0xa86a in hexadecimal).
What is the native currency of Avalanche Mainnet?
The native currency of Avalanche Mainnet is AVAX.
How do I add Avalanche Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add Avalanche Mainnet to MetaMask automatically, or follow our step-by-step guide for Avalanche.