IoTeX logo

IoTeX Mainnet

RPC Endpoints

Chain ID: 4689 · IOTX

How to add IoTeX to MetaMask or other wallets

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://babel-api.mainnet.iotex.io
4689IOTXExplorer
Checking
https://iotex-mainnet.drpc.org
4689IOTXExplorer
Checking
https://rpc.swiftnodes.io/rpc/iotex?key=demo
4689IOTXExplorer

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

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