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