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