Cosmos logo

Cosmos Mainnet

RPC Endpoints

Chain ID: cosmoshub-4 · ATOM

Other Cosmos networks:Testnet
How to add Cosmos to MetaMask or other wallets

Cosmos Mainnet uses ATOM as its native currency. Chain ID: 12 (cosmoshub-4). Below is a public RPC endpoint you can use to connect wallets, dApps, and developer tools to Cosmos Mainnet.

StatusRPC EndpointChain IDCurrencyExplorerWallet
Checking
https://cosmos-mainnet.gateway.tatum.io
cosmoshub-4ATOMExplorer

Connect to Cosmos Mainnet with ethers.js

import { ethers } from "ethers";

const provider = new ethers.JsonRpcProvider("https://cosmos-mainnet.gateway.tatum.io");

const network = await provider.getNetwork();
console.log(network.chainId); // 12n

Cosmos Mainnet — common questions

What is the RPC URL for Cosmos Mainnet?
The public RPC URL for Cosmos Mainnet is https://cosmos-mainnet.gateway.tatum.io.
What is the Chain ID for Cosmos Mainnet?
The Chain ID for Cosmos Mainnet is 12 (cosmoshub-4 in hexadecimal).
What is the native currency of Cosmos Mainnet?
The native currency of Cosmos Mainnet is ATOM.
How do I add Cosmos Mainnet to MetaMask?
Use the "Add to Wallet" button on this page to add Cosmos Mainnet to MetaMask automatically, or follow our step-by-step guide for Cosmos.