Guide

Solana devnet vs mainnet explained

Solana is not one single blockchain in the way beginners imagine. It runs as clusters — separate networks that share the same software but keep completely different ledger state. Mainnet-beta is where real SOL has market value, NFTs trade for money, and live dApps settle payments. Devnet is a public sandbox: same rules, fake money, reset or degraded performance acceptable. Confusing the two is one of the most common reasons a wallet shows SOL while a payment to a live site fails. This guide explains what each network is for, how to use devnet safely, and when you must be on mainnet.

Mainnet-beta: the live network

Mainnet-beta (wallets usually label it "Mainnet" or "Mainnet Beta") is Solana's production cluster. Every lamport in your mainnet wallet is real: you bought it, earned it, or received it from someone who did. Transactions here are irreversible, programs deployed here serve real users, and merchants like shops, games, and NFT marketplaces only accept mainnet SOL.

Mainnet validators stake real SOL, produce blocks every ~400 ms, and compete for priority fees during congestion. Explorers such as Solscan default to mainnet. When a guide on this site says "send 0.001 SOL," it always means mainnet unless stated otherwise. Our first Solana payment walkthrough assumes mainnet throughout.

What mainnet is good for

Devnet: the developer sandbox

Devnet runs the same Solana runtime as mainnet but on a separate ledger. Balances are test SOL — free, worthless outside devnet, and obtainable from public faucets. Validators on devnet do not secure real economic value; the cluster may be slower, reset, or less reliable than mainnet. That is intentional: developers break things here so users do not suffer on mainnet.

Your wallet address (public key) is identical across clusters. The same 7xKX... string exists on mainnet and devnet, but the accounts at that address are unrelated. One SOL on devnet does not move one SOL on mainnet. Tokens minted on devnet are not tradeable on Jupiter or Magic Eden.

What devnet is good for

Devnet is not a staging environment with production-grade uptime guarantees. For closer-to-mainnet testing, some teams use testnet (another cluster) or private validators. Most end users never need testnet — only devnet and mainnet matter for day-to-day wallet use.

Side-by-side comparison

Property Mainnet-beta Devnet
SOL value Real — traded on exchanges Zero — test currency only
How to get SOL Buy, earn, receive transfer Public faucets (rate-limited)
Who uses it Everyone with a wallet Developers, learners, testers
Merchant acceptance Yes — live sites and games No — devnet payments rejected
Block explorer Solscan, Solana FM (mainnet tab) Same explorers — select Devnet
Typical RPC URL https://api.mainnet-beta.solana.com https://api.devnet.solana.com
Wallet network label Mainnet Beta Devnet

The table is the mental model: if a row says "real value" vs "test only," that is the line you must not cross when paying a live merchant.

How to get devnet SOL (faucets)

Devnet SOL is minted by faucet services, not purchased. Common options:

  1. Solana CLI — if you have the CLI configured for devnet, run solana airdrop 2 (amount and limits change; check current docs).
  2. Web faucets — Solana Foundation and third-party faucets accept your wallet address and drip 1–5 SOL per request. Search "Solana devnet faucet" for the current official URL; faucets move occasionally.
  3. Inside your wallet — some wallets expose a "Request devnet SOL" button when Devnet is selected in settings. Availability varies by wallet version.

Faucets rate-limit by IP and address. If an airdrop fails, wait a few minutes or try another faucet. You do not need large devnet balances — 1–2 SOL is enough for thousands of test transactions because base fees are tiny on every cluster.

Switching networks in your wallet

Wallets isolate clusters behind a network picker. Phantom, Solflare, and Backpack all expose Mainnet Beta and Devnet in settings — usually under "Developer Settings" or the network dropdown at the top of the extension.

Before any payment to a real site:

  1. Open wallet settings and confirm the network reads Mainnet Beta.
  2. Check that your balance makes sense (mainnet SOL you actually funded).
  3. Connect to the dApp and approve — the site’s RPC also targets mainnet.

If you were experimenting on devnet and now want to pay for real, switch back to mainnet first. Step-by-step screenshots per wallet live in our wrong network troubleshooting hub and dedicated guides such as switch Phantom to mainnet.

For developers: RPC endpoints and tooling

Applications talk to Solana through an RPC URL. The cluster is determined by that URL, not by the user's browser alone. Pointing your app at devnet while the user's wallet stays on mainnet produces confusing errors — always align wallet network, RPC endpoint, and program deployment cluster.

Merchants verifying incoming payments must query mainnet RPC and check signatures against mainnet block height. Our accept Solana payments guide covers server-side verification patterns that ignore devnet entirely.

Common mistakes (and how to avoid them)

  1. "I have SOL but payment failed." You are almost certainly on devnet. The balance looks real in the UI; the merchant's mainnet RPC never sees your transfer. Fix: switch to Mainnet Beta, fund with real SOL, retry once — do not spam retries. See wrong network fixes.
  2. Sending mainnet SOL to a devnet-only tutorial address. Less common but catastrophic: you paste a friend's address while your wallet is on devnet, then switch to mainnet and send real SOL to the same string. The funds land on mainnet at their address — fine — but if you thought you were still testing, you just sent real money. Always read the network badge before confirming.
  3. Testing with mainnet micro-amounts when devnet would do. Developers sometimes burn real SOL on repeated deploys. Use devnet until the program is stable; one final mainnet deploy is enough.
  4. Assuming devnet tokens have value. Airdropped "USDC" on devnet is not USD. Scammers occasionally trick newcomers with devnet tokens shown in wallet token lists. Hide unknown tokens and verify mint addresses on mainnet explorers.

Testnet: do you need it?

Solana also operates testnet, historically used for validator testing and epoch drills. Wallets may list it alongside devnet. Unless you run a validator or follow explicit testnet instructions, ignore it. End-user tutorials and faucets overwhelmingly use devnet; live products use mainnet. If your wallet offers Mainnet, Devnet, and Testnet, pick Mainnet for real use and Devnet for experiments — leave Testnet alone.

Practice on mainnet (after you switch)

Devnet is for learning mechanics; mainnet is where a 0.001 SOL payment proves you understand the full loop — wallet, fee, confirmation, explorer. After confirming Mainnet Beta is selected:

  1. Fund the wallet with a small amount of real SOL (even 0.05 SOL is plenty).
  2. Approve a 0.001 SOL Garden Dice roll and copy the transaction signature.
  3. Paste it into our tx lookup tool or Solscan — cluster should read mainnet.
  4. Compare fee lines with our Solscan reading guide.

The free demo does not touch either cluster — it is a local preview. Real SOL buttons require mainnet.

Related guides