What is a mainnet?
A mainnet is the public network on which a blockchain officially runs, and transactions on it move assets that have real value. When people talk about the price of ether (ETH), they mean ETH on Ethereum mainnet.
The same set of blockchain rules can also run other networks for developers to test on. Each of these networks keeps its own ledger, separate from mainnet's. Ethereum has only one mainnet; any other network run under the same protocol rules is not Ethereum mainnet. For how a mainnet's starting point is set, see genesis block.
How mainnet and testnet differ
A testnet runs under the same or similar rules as mainnet and is used to test smart contracts, applications, or protocol upgrades before they are deployed to mainnet. The most fundamental difference between the two is whether the coins on the network have real value:
| Mainnet | Testnet | |
|---|---|---|
| Purpose | Handles real transfers and application interactions | Tests contracts, applications, and protocol upgrades |
| Value of coins | Has real value | Designed to have no real value |
| How to get coins | Buy them, receive them from others, or earn block rewards as a miner or validator | Usually enter an address on a "faucet" website to claim a small amount of test coins for free |
| Stability | Runs continuously under the protocol | Its ledger may be reset, or the network may be retired or replaced |
Ethereum, Bitcoin, and Solana each run their own test networks:
- Ethereum: The public testnets currently maintained by the teams that develop Ethereum node software (clients) are Sepolia and Hoodi. Sepolia is for contract and application developers to test on; Hoodi is for protocol developers to test network upgrades and for stakers to trial-run validators. The Holesky testnet, previously used for validator testing, was shut down two weeks after it completed and finalized the network upgrade called Fusaka, according to an Ethereum Foundation announcement made in September 2025, and it is no longer maintained by client teams. Developers can also start a network on their own computer for local testing only.
- Bitcoin: Bitcoin Core, Bitcoin's node software, connects to mainnet by default and can also switch to a testnet. On a testnet, long runs of confirmed blocks may be replaced by another chain (a block reorganization), and block production can be fast at some times and slow at others. Bitcoin developers proposed signet for this reason: besides satisfying proof of work, blocks must also meet signature conditions set by the network, and whoever sets these conditions can control who is able to produce valid blocks, which makes it easier to run tests that resemble mainnet. Developers can also use regtest mode to create a private chain on their own machine that does not connect to any public network, and decide for themselves when blocks are produced.
- Solana: Besides mainnet, there are Devnet and Testnet. Tokens on both are not real assets, and their ledgers may be reset. Although its name suggests a development network, Devnet is a public network anyone can connect to, aimed at users, application developers, and validators who want to try things out; Testnet is mainly for core developers to run stress tests and for validator testing.
Layer 2 networks, which execute transactions outside Ethereum (see offchain), likewise have their own production networks and testnets.
Balances do not carry across networks, so pick the right network when transferring
The same address (account) can be used on Ethereum mainnet and on each testnet, but balances and transaction history do not carry over from one network to another: 100 ETH on a testnet will not appear on mainnet, and mainnet assets will not appear on a testnet. For security reasons, the Ethereum website advises against mixing mainnet accounts and testnet accounts.
Ethereum uses a chain ID to tell these networks apart, and mainnet's chain ID is 1. Ethereum Improvement Proposal EIP-155 proposes including the chain ID in what is signed. Transactions signed under this specification cannot be replayed on a network with a different chain ID.
The same principle applies between the mainnets of different blockchains. The same asset may be issued on several blockchains, so you need to pick the right network when transferring. OKX's withdrawal page notes that if a coin supports multiple networks, the network you select when withdrawing must match the deposit network of the receiving wallet or platform; otherwise, assets may be lost.
After a mainnet launch, tokens may need to migrate and deposits and withdrawals may pause
A "mainnet launch" means a project's blockchain has started running on its production network. Some projects issue tokens on other blockchains before their own mainnet launches; once the new mainnet is live, they may ask users to migrate those tokens to the new network. A mainnet launch does not by itself move users' balances over. Migration is also called a mainnet swap; whether a migration is needed and how to carry it out depend on the specific announcements of the project and of the platform being used.
During a migration, trading platforms may suspend deposits and withdrawals of the coin. Take an OKX (then called OKEx) announcement dated September 26, 2019: after Vite (VITE) completed its mainnet swap, the platform generated new deposit addresses for VITE and retired the old ones, and continuing to deposit to an old address would result in the loss of assets.
A mainnet launch only means the network handles real assets, not that it is free of bugs or risk
A mainnet launch shows that the network has started processing transactions with real value, and that users' assets and actions are from then on genuinely recorded on this chain. It does not show that the code is free of vulnerabilities, that the network is sufficiently decentralized, or that all features are complete; running smoothly on a testnet does not guarantee that nothing will go wrong on mainnet either. Nor does a mainnet launch say where the token will trade or how its price will move.
FAQ
Can test coins be exchanged for money?
Test coins are designed to have no real value. Markets have emerged for some hard-to-get test coins, but be especially careful when someone claims they can turn test coins into money.
Related terms
Learn more about blockchain, blockchain nodes, blockchain addresses, validators, the ERC-20 token standard, genesis blocks, and offchain, or return to the cryptocurrency glossary.
References
Digitale aktiva er utsatt for volatilitet og er ikke forsikret. Ikke finansiell/investeringsrådgivning. Ikke alle produkter og tjenester tilbys i alle regioner. Unntak og vilkår og betingelser gjelder.
© 2026 OKX. Denne artikkelen kan gjengis eller distribueres i sin helhet, eller utdrag på 100 ord eller mindre av denne artikkelen kan brukes, forutsatt at slik bruk er ikke-kommersiell. Enhver gjengivelse eller distribusjon av hele artikkelen må også tydelig angi: «Denne artikkelen er © 2026 OKX og brukes med tillatelse.» Tillatte utdrag må sitere navnet på artikkelen og inkludere kildehenvisning, for eksempel «Artikkelnavn, [forfatternavn hvis aktuelt], © 2026 OKX.» Noe innhold kan være generert eller assistert av verktøy for kunstig intelligens (AI). Ingen bearbeidelser eller annen bruk av denne artikkelen er tillatt.









