XDC logo

XDC Mainnet

RPC Endpoints

Chain ID: 50 · XDC

Other XDC networks:Apothem Testnet
How to add XDC to MetaMask or other wallets

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://rpc.xinfin.network
50XDCExplorer
Checking
https://xdc-mainnet.gateway.tatum.io
50XDCExplorer

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); // 80n

XDC 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.