Works with MetaMask and other browser wallets.
| Network name | XDC Network |
|---|---|
| RPC URL | https://erpc.xinfin.network |
| Chain ID | 50 (testnet: 51) |
| Currency symbol | XDC |
| Block explorer | https://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
- 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.
- Enter a network name, the RPC URL, chain ID 50 and currency symbol XDC from the table above.
- 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
Click the button above and approve the network in your wallet, or open “Add a network” in MetaMask and enter chain ID 50, the RPC URL and currency symbol XDC from the table above.
Yes. MetaMask works with XDC once the XDC network (chain ID 50) is in its network list. Add it with the button above or by hand.
50 for mainnet (0x32 in hexadecimal) and 51 for the Apothem testnet (0x33), according to the XDC docs and the chainid.network registry.
The XDC docs give https://erpc.xinfin.network for mainnet. https://rpc.xinfin.network, https://rpc1.xinfin.network and https://erpc.xdcrpc.com also answered with chain ID 50 in our test on 13 October 2026. Which ones answer right now is on XDC RPC status.
MetaMask is probably on another network. Switch to XDC (chain 50): a token only appears on the network it was sent on.
Copy your MetaMask address, choose the XDC network in the exchange's withdrawal form, and send a small test amount first. If the exchange wants an xdc address, replace 0x with xdc.
XDC's test network, chain ID 51, with free test XDC (TXDC) from the Apothem faucet. It is for developers and its coins have no value.
Yes, if the details match the XDC docs. MetaMask asks you to approve the network first, and adding a network never needs your recovery phrase. See the safety center.