Crypto

What is a testnet?

A testnet is a practice copy of a blockchain where the coins have no value. Learn what a testnet is, how it works, and why every serious network runs one.

What is a testnet?

Quick answer

A testnet is a fully working copy of a blockchain used for testing, where the coins have no real value. Developers use it to try software, deploy smart contracts and rehearse upgrades before anything reaches the live network, called the mainnet, where coins are worth real money.

Key points

  • A testnet is a practice copy of a blockchain where coins have no real value
  • Developers use it to test software and rehearse upgrades before mainnet
  • You get free test coins from a faucet, not by buying them
  • Testnets can be reset, so nothing on them is permanent
  • Never send real assets to a testnet, and never buy testnet coins

A testnet is a fully working copy of a blockchain network used for testing, where the coins have no real value and mistakes cost nothing. Developers use it to try out software, deploy smart contracts and rehearse upgrades before anything touches the real network, called the mainnet, where coins are worth real money.

The word sounds technical, but the idea is simple: a testnet is a practice environment. This article explains how a testnet works, why every serious network has one, how you get test coins, and the safety point every user should take away from the fact that testnets exist at all.

Testnet vs mainnet

Every public blockchain you actually transact on is a mainnet. It is the live network where blocks carry real value and transactions are final. A testnet mirrors that network’s technology closely, but with one deliberate difference: its native coins are worthless and are handed out for free. That single change is what makes a testnet safe to break.

Mainnet Testnet
Coin value Real monetary value None; free to obtain
Purpose Live use Testing and rehearsal
Cost of mistakes Real losses Effectively zero
Data Permanent, authoritative Disposable; may be reset

Because a testnet closely resembles the real thing, code that behaves correctly there is far more likely to behave correctly on mainnet. But because its coins are free, there is no financial pressure and no reason for anyone to attack it seriously, which is exactly why it is not a place to store anything of value.

How a testnet works

A testnet runs the same core software as its mainnet: the same transaction format, the same block structure, and usually the same or a very similar consensus rules. Nodes validate blocks, transactions get confirmed, and you can watch it all on a block explorer, just as you would on mainnet. The difference is entirely in the economics, not the mechanics.

Testnets typically make their coins easy to get so that developers are not blocked. On proof-of-stake test networks, for example, the barrier to producing blocks is deliberately lowered so the network keeps running without a real economy behind it. Ethereum’s developer documentation lists its current public test networks and explains that they exist for exactly this kind of pre-production testing.

What testnets are used for

  • Smart contract development. Developers deploy and run contracts on a testnet to find bugs before real money is exposed.
  • Wallet and app testing. New wallets and applications can be exercised end to end without risking user funds.
  • Network upgrades. Major protocol changes are rehearsed on testnets first, so the community can catch problems before they hit mainnet.
  • Learning. Newcomers can practise sending transactions and interacting with contracts safely.

Bitcoin has long run its own testnet for the same reasons, and Ethereum maintains public testnets that its client teams and developers use ahead of every significant change. The pattern is universal: rehearse where mistakes are free, then ship to where they are not.

Public testnets, local testnets and forks

Not every test environment is a shared public network. It helps to know the main flavours, because developers reach for different ones at different stages:

  • Public testnets. Shared networks, like Ethereum’s Sepolia and Holesky, that many developers use at once. They behave most like the real thing and are good for final testing before mainnet.
  • Local test networks. A single-machine network a developer spins up on their own computer to iterate quickly and privately, resetting it at will.
  • Forked environments. A temporary copy of mainnet’s current state, used to test against real conditions without touching the live chain.

These are complementary. A developer might start locally for speed, move to a public testnet to test with others under realistic timing, and only then deploy to mainnet. Each step widens the audience and the realism while keeping the stakes at zero until the very last move.

Public testnets do get retired and replaced over time as networks evolve, which is why the specific names change and why nothing on a testnet should be considered permanent. Ethereum’s documentation keeps a current list precisely because the roster shifts.

How you get test coins from a faucet

Because testnet coins have no value, you cannot buy them and you do not mine them in any meaningful way. Instead you request them from a faucet, a service that sends small amounts of test coins to any address that asks. Faucets usually add light anti-spam checks so a single user cannot drain them, but the coins themselves are free and are only good on that testnet.

Once you have test coins in a wallet configured for the testnet, you can send transactions, deploy contracts, and inspect everything on a testnet block explorer. It looks and feels like the real network, which is the point. Testnets usually run their own dedicated block explorers, separate from the mainnet ones, so you view testnet activity on a testnet explorer and never confuse the two.

The safety lesson hidden in testnets

Testnets carry a warning that is easy to miss. Test coins are not real, and testnets can be reset or shut down, which means anything on them is disposable. That leads to two practical rules:

  • Never send real assets to a testnet address, and never treat testnet coins as something you can sell. People occasionally get confused by the resemblance to mainnet and lose funds by mixing the two up.
  • Be sceptical of anyone selling “testnet tokens.” Since faucets give them away for free, any offer to sell them is a red flag, and scams sometimes exploit newcomers who don’t yet know that.

Understanding the difference between a testnet and a mainnet is also good general hygiene: it trains you to always check which network a wallet or app is pointing at before you act. Most wallet software shows the active network clearly, and switching between mainnet and a testnet is deliberate, but it pays to glance at that indicator before signing anything, because an address that looks identical can belong to a completely different network.

There is a wider reason to care even if you never touch a testnet yourself: you benefit from them constantly. Every reputable wallet, application and protocol upgrade you rely on was almost certainly rehearsed on a testnet first. When a network prepares a major change, running it on a public testnet lets independent developers, node operators and infrastructure providers all try it under realistic conditions and surface problems while the cost of fixing them is still zero. By the time the change reaches mainnet, it has already survived a dress rehearsal in front of a critical audience.

In that sense, testnets are part of the quality control behind the whole ecosystem. They are the reason serious upgrades tend to arrive having already been stress-tested, rather than being tried for the first time on the network where your money lives.

The bottom line

A testnet is the rehearsal stage of a blockchain: a faithful copy of the network where coins are free and failure is harmless, used to test software and upgrades before they reach the real mainnet. For a developer it is where the real work of finding bugs happens. For an everyday user, the key takeaways are simpler: testnet coins have no value, testnets can disappear, and knowing which network you are on is part of staying safe.

Sources

  1. Ethereum.org — Networks and testnets
  2. Investopedia — Testnet

Frequently asked questions

What is a testnet used for?

A testnet is a practice copy of a blockchain used to test software, deploy smart contracts and rehearse network upgrades without risking real money, because its coins have no value.

Do testnet coins have any value?

No. Testnet coins are free, are handed out by faucets, and only work on that test network. Any offer to sell them should be treated as a scam.

What is the difference between a testnet and a mainnet?

A mainnet is the live network where coins have real value and transactions are final. A testnet mirrors it technically but uses valueless coins and can be reset.

Last reviewed: 26 Aug 2026 Next review: 26 Feb 2027 Section: Crypto
Liam Chen
Protocol & security writer · Blockchain mechanics, wallet security, cryptography

Liam Chen writes about how crypto works at the protocol level — consensus, cryptography, wallets and security. He explains mechanisms plainly and cites primary sources.

More by Liam Chen

Related

Crypto

What is a multisig wallet?

A multisig wallet needs more than one key to approve a transaction. Learn what a multisig wallet is, how the…

Liam Chen · Aug 26, 2026 · 6 min