Home / Tools / Add XDC to MetaMask

Add XDC to MetaMask: One-Click Network Setup

Add XDC mainnet or the Apothem testnet to MetaMask and other browser wallets in one click, or copy the network details below.

Works with MetaMask and other browser wallets.

Network nameXDC Network
RPC URLhttps://erpc.xinfin.network
Chain ID50 (testnet: 51)
Currency symbolXDC
Block explorerhttps://xdcscan.com

How the one-click button works

Click the button above: it asks your wallet to add the XDC network and shows you the details before anything changes.

Your wallet asks before anything changes

The buttons use wallet_addEthereumChain, a standard method (EIP-3085) that is "used to suggest to the wallet that a new chain be added to the wallet's list of chains". The standard says a chain "should never be added without the explicit consent of the user", so MetaMask shows the details and waits for you to approve (EIP-3085).

What the button sends

For mainnet: chain ID 50 (0x32 in hexadecimal), the currency XDC with 18 decimals, and the RPC URL and block explorer shown in the table. For Apothem: chain ID 51 (0x33), the test currency TXDC, and its own RPC and explorer. Compare what MetaMask shows with these values before you approve.

If nothing happens

The page needs a wallet extension in the same browser. If the status line says no browser wallet was found, unlock the extension and reload, or add the network by hand with the steps below. On a phone, open this page in your wallet app's own browser if it has one. No wallet yet? Choose an XDC wallet first.

XDC network details for MetaMask: RPC URL and chain ID

  1. In MetaMask, click the menu in the top right and select Networks, then Add a custom network (MetaMask support). Labels can differ a little between MetaMask versions.
  2. Enter a network name, the RPC URL, chain ID 50 and currency symbol XDC from the table above.
  3. Add the block explorer URL, save, and switch to the new network.

The network name is only a label in your wallet: the XDC docs call it "XDC Mainnet" and the chain registry chainid.network calls it "XDC Network" (chainid.network). What must be exact is the chain ID and the RPC URL. The XDC docs also say MetaMask now supports XDC Network natively; if XDC is not in your network list, use the button or these steps.

Source: XDC docs, wallet configuration.

XDC mainnet and Apothem testnet settings

  • Mainnet: chain ID 50, symbol XDC, RPC https://erpc.xinfin.network, explorer https://xdcscan.com.
  • Other mainnet RPC URLs: https://rpc.xinfin.network, https://rpc1.xinfin.network and https://erpc.xdcrpc.com. Each answered with chain ID 50 when we tested them on 13 October 2026. If one stops responding, switch to another: XDC RPC status shows which ones answer right now.
  • Apothem testnet: chain ID 51, symbol TXDC, RPC https://rpc.apothem.network, explorer https://testnet.xdcscan.com, faucet https://faucet.apothem.network.

Apothem is for testing apps and contracts. Test XDC from the faucet has no value. All settings come from the XDC docs; live block times and fees are on XDC network status.

Using Trust Wallet, Ledger or Trezor? See how to add XDC to Trust Wallet, Ledger and Trezor.

After you add the network

MetaMask switches to XDC. Here is what changes and what to do next.

Your address

MetaMask shows your address with 0x. XDC tools and some exchanges show the same account with xdc at the start. The XDC docs say to "Replace xdc with 0x when pasting addresses into MetaMask" (XDC docs). The address converter switches between the two.

XDC for fees

Every transaction costs gas. The XDC docs give the fee as gas used × gas price, with the cost in XDC (XDC docs, gas fees), so keep a small amount of XDC in the wallet before you use apps.

Getting XDC into MetaMask

Buy XDC on an exchange, withdraw it on the XDC network to your MetaMask address, and send a small test amount first. Country guides are on how to buy XDC. Some wallet apps also sell XDC directly: see buy XDC in a wallet app.

Common mistakes and how to avoid them

The most common problems after adding XDC to MetaMask, and the fix for each.

Balance shows zero

MetaMask support notes that a token "will only appear on the network it was sent on" (MetaMask support). Switch MetaMask to the XDC network to see XDC sent on chain 50.

An RPC URL from an unknown source

The RPC URL is the server your wallet reads balances from and sends transactions through. Use the addresses from the XDC docs or this page, never ones from a stranger's message or an unknown site.

Testnet and mainnet mixed up

Apothem (chain 51) and mainnet (chain 50) are separate networks. XDC sent on mainnet does not show on Apothem, and TXDC is not real XDC.

Requests for your recovery phrase

Adding a network never needs your secret recovery phrase. Anyone who asks for it is trying to take your funds. More in the safety center.

Add XDC to MetaMask FAQ

More XDC wallet setup tools

Support XDC Watch

Found this useful? XDC Watch is independent and free to read. You can support it with any amount of XDC.

Our XDC address

xdcce2dF33d7cb54d5a7313c2CDacBC38091f894d24

Send XDC on the XDC Network only. If an exchange asks for an address that starts with 0x, use 0xce2dF33d7cb54d5a7313c2CDacBC38091f894d24. It is the same address.

Received this month

0.00 XDC

Gifts this month

0

Received in 2026

0.00 XDC

XDC chain · updated 36s ago

A gift is not a payment for any service and not an investment. Each gift gets a thank-you on our Telegram channel with the amount only.

Scan with your wallet app