Starknet logo

Starknet Mainnet

RPC Endpoints

Chain ID: SN_MAIN · ETH

Other Starknet networks:Sepolia Testnet
How to add Starknet to MetaMask or other wallets

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.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://starknet-mainnet.public.blastapi.io
SN_MAINETHExplorer
Checking
https://starknet.drpc.org
SN_MAINETHExplorer

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); // NaNn

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