XDC Mainnet
RPC EndpointsChain ID: 50 · XDC
Other XDC networks:Apothem Testnet
XDC Mainnet uses XDC as its native currency. Chain ID: 80 (50). Below are 2 public RPC endpoints you can use to connect wallets, dApps, and developer tools to XDC Mainnet.
Connect to XDC Mainnet with ethers.js
import { ethers } from "ethers";
const provider = new ethers.JsonRpcProvider("https://rpc.xinfin.network");
const network = await provider.getNetwork();
console.log(network.chainId); // 80nXDC Mainnet — common questions
What is the RPC URL for XDC Mainnet?
There are 2 public RPC endpoints for XDC Mainnet, including https://rpc.xinfin.network. See the full list in the table above.
What is the Chain ID for XDC Mainnet?
The Chain ID for XDC Mainnet is 80 (50 in hexadecimal).
What is the native currency of XDC Mainnet?
The native currency of XDC Mainnet is XDC.
How do I add XDC Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add XDC Mainnet to MetaMask automatically, or follow our step-by-step guide for XDC.