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