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