Skip to content
BTC— ETH— SOL— ETH gas— Hashrate— Block— mempool.space · CoinGecko

Bitcoin test networks: choose testnet4, signet or regtest

Choose the network by the control your test needs. Match the node and client flags, verify the actual chain, and keep test balances and mainnet wallets separate.

Three engraved Bitcoin test chambers with manual blocks, a signing gate and mining peers, separated from a locked mainnet vault
Contents

    Use regtest when you need to create blocks yourself, signet when several people need a shared test chain, and testnet4 when the experiment needs public proof-of-work mining. I'd start with regtest for a local learning session because you control when the chain advances. In Bitcoin Core 32.1, select the network explicitly and verify it before creating a test wallet: the old -testnet option still selects testnet3, not testnet4.

    Choose who needs to control the blocks

    The useful distinction is control over the environment. A script that needs a confirmation on demand has a different requirement from a wallet integration that must exchange transactions with somebody else's node.

    NetworkChoose it forControl and limitation
    RegtestA private learning lab, automated tests or a deliberate fork/reorganization scenario.You arrange the nodes and create blocks when needed. Multiple nodes can be connected manually; there isn't one shared public regtest chain.
    Default signetTesting across independently operated wallets or services on a shared chain.Blocks must satisfy the network's signing challenge as well as proof of work. You depend on its block producers rather than choosing the next block yourself.
    Testnet4An integration that specifically needs a public chain with permissionless PoW miners.Anyone can mine subject to its rules. Irregular blocks and reorganizations are part of the environment; a block-time target isn't a deadline.
    Custom signetA team that needs its own shared chain and control over block signing.Participants must agree on the challenge and peers. Your team also takes responsibility for producing blocks.

    BIP 325 defines signet as signatures in addition to proof of work. Calling it a replacement for PoW misses a validation requirement. It also explains why an uncontrolled public regtest is a poor substitute: its cheap block production lets a participant take control of the test chain.

    For a demonstration involving another organization, my default is signet if that organization's software supports the same signet. For a test that must stop, create a fork and resume at an exact point, I'd keep control in regtest. Confirm the wallet, explorer and backend support the chosen chain before committing to it; a product's generic “testnet” label doesn't settle that question.

    Use the current network name, not an old tutorial's shortcut

    Core 32.1's network options and base parameters distinguish testnet3 from testnet4. The table shows defaults for a local Core node. RPC ports are for commands to the node; they are different from the P2P ports used between nodes.

    Select one optionchain valueNetwork data subfolderDefault RPC port
    -regtestregtestregtest18443
    -signetsignetsignet38332
    -testnet4testnet4testnet448332
    -testnet (deprecated testnet3)testtestnet318332
    -chain=mainmainNo network subfolder8332

    With no network selection, Core defaults to mainnet. For new public PoW work I'd choose testnet4 rather than start a new dependency on deprecated testnet3. If a service still requires testnet3, treat that as an explicit compatibility constraint.

    BIP 94 changes testnet4's difficulty rules to address testnet3's block-storm problem. It retains a minimum-difficulty exception after a timestamp gap greater than 20 minutes, except at the first block of a difficulty period. That is a rule for an eligible block, not a promise that a block arrives within 20 minutes. The specification identifies a possible stall at a period boundary when the remaining hash rate can't quickly meet the actual difficulty.

    Give the experiment its own data folder

    I prefer a dedicated base data folder for a test lab. It makes the boundary visible and keeps experiments away from the mainnet configuration. Create a new, empty folder first; don't point the example at a mainnet data directory, a wallet backup or a folder containing your production keys.

    The following are alternative startup examples for Core 32.1. Choose one line and replace the quoted path with the absolute path of your new folder. The path syntax shown suits Linux or macOS; on Windows use an absolute Windows path and the matching executable name. These examples describe the documented options, with no sample run output.

    bitcoind -regtest -datadir="/absolute/path/to/bitcoin-test-lab"
    bitcoind -signet -datadir="/absolute/path/to/bitcoin-test-lab"
    bitcoind -testnet4 -datadir="/absolute/path/to/bitcoin-test-lab"

    Keep that process running and use a second terminal for the client commands below. For the graphical app, use the same selected network and data-folder options with bitcoin-qt instead of bitcoind. Start one instance for this lab. If you're still arranging the binaries and basic node operation, the Core node setup walkthrough covers those prerequisites.

    Core's data-directory logic appends the network subfolder to the base folder and requires an explicitly supplied base folder to exist. In this example regtest's network data belongs under bitcoin-test-lab/regtest. Selecting signet doesn't convert that regtest history into signet history.

    Check the configuration file used by this lab as well. In Core's configuration format, write regtest=1 without a leading hyphen if you choose configuration-based selection instead of the startup flag. A [regtest] section groups settings for that network; it doesn't by itself select it. Configuration changes require a restart.

    Use only one network selector. Core rejects combinations of active chain-selection options, including a -chain option combined with -regtest, -signet, -testnet or -testnet4. Don't add a new flag on top of an existing, conflicting selection in the lab's configuration. Read the startup error and correct that selection first.

    Ask the running node which chain it serves

    Match the client to the node. For the regtest startup example, the read-only check is:

    bitcoin-cli -regtest -datadir="/absolute/path/to/bitcoin-test-lab" getblockchaininfo

    For signet or testnet4, replace -regtest in that command with the option you used to start the node. Core's getblockchaininfo response identifies the current chain and reports its validated block height, header count and best block hash. Compare the chain field with the table above. If you expected testnet4 and receive test, you're querying testnet3.

    A fresh regtest chain can correctly report blocks: 0: the genesis block has height zero. Its height won't advance until you or another connected lab node creates blocks. Waiting for public miners or a faucet won't make that private chain progress.

    A connection error isn't evidence that the chain is empty. First check that the intended node is running, the data path and network option match, and an explicit RPC connection or port setting hasn't directed the client elsewhere. Don't delete blockchain data to fix a mismatched client command.

    In the graphical app, open Node window and select Console. Enter just getblockchaininfo, without the bitcoin-cli prefix or startup flags. Read the console's warning before pasting commands from anyone else.

    Bitcoin Core and Node window title bars both end with [regtest], above the Console tab
    Read the network name in the title bar before using the console. Select Enlarge image to read the details. For an app or service, also check the chain reported by its actual backend.

    The Node window's non-mainnet title includes the chain name. Use that text rather than icon color alone. A desktop window labeled regtest doesn't prove that a separate application's RPC connection uses regtest.

    Custom signets need one further check. All signets share a genesis block, while the challenge defines the particular signet. The RPC response includes signet_challenge on signet; compare it with the challenge agreed by your team. A chain value of signet, or a matching genesis hash alone, can't distinguish your custom network from the default one. Use separate base folders for different custom signets so their shared signet subfolder name can't mix the experiments.

    Keep test coins, addresses and explorers on the same chain

    A testnet-looking address isn't enough to identify the chain. Core's network parameters use the same address encodings for testnet3, testnet4 and signet, including the tb1 prefix for native SegWit addresses. Regtest uses bcrt1 for that address type. Balances still belong to their separate chains: a valid-looking signet address doesn't bring its signet coins onto testnet4.

    Create separate test wallets and keep mainnet seeds, private keys and backups out of the lab. For a faucet, supply only a receiving address for the exact network it serves. It has no reason to request a wallet seed or private key. Check the transaction with an explorer for that same chain and confirm your application's backend agrees.

    Test coins are intended for experimentation without real-money risk. I wouldn't pay for them as an investment or accept them as mainnet BTC. BIP 94 specifically identifies secondary trading of testnet3 coins as a problem; that history doesn't turn test balances into mainnet funds.

    Regtest lets you create blocks locally instead of depending on a public faucet. Public signet users normally obtain coins from a compatible faucet or another participant; the Core signet tools document faucet access and custom block production. Choose the wallet and funding workflow only after the node, client and application all identify the intended network. The node guides cover the surrounding setup choices.

    All about Bitcoin nodes