Rootstock logo

Rootstock Mainnet

RPC Endpoints

Chain ID: 0x1e · RBTC

Other Rootstock networks:Testnet
How to add Rootstock to MetaMask or other wallets

Rootstock Mainnet uses RBTC as its native currency. Chain ID: 30 (0x1e). Below are 4 public RPC endpoints you can use to connect wallets, dApps, and developer tools to Rootstock Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://rootstock.drpc.org
0x1eRBTCExplorer
Checking
https://public-node.rsk.co
0x1eRBTCExplorer
Checking
https://rpc.swiftnodes.io/rpc/rootstock?key=demo
0x1eRBTCExplorer
Checking
https://rsk-mainnet.gateway.tatum.io
0x1eRBTCExplorer

Connect to Rootstock Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://rootstock.drpc.org");

const network = await provider.getNetwork();
console.log(network.chainId); // 30n

Rootstock Mainnet — common questions

What is the RPC URL for Rootstock Mainnet?
There are 4 public RPC endpoints for Rootstock Mainnet, including https://rootstock.drpc.org. See the full list in the table above.
What is the Chain ID for Rootstock Mainnet?
The Chain ID for Rootstock Mainnet is 30 (0x1e in hexadecimal).
What is the native currency of Rootstock Mainnet?
The native currency of Rootstock Mainnet is RBTC.
How do I add Rootstock Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add Rootstock Mainnet to MetaMask automatically, or follow our step-by-step guide for Rootstock.