Rootstock logo

Rootstock Testnet

RPC Endpoints

Chain ID: 0x1f · tRBTC

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

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://rootstock-testnet.drpc.org
0x1ftRBTCExplorer
Checking
https://public-node.testnet.rsk.co
0x1ftRBTCExplorer
Checking
https://rsk-testnet.gateway.tatum.io
0x1ftRBTCExplorer

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); // 31n

Rootstock 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.