Reviewed Aug 2026
DE
BA-14 · LESSON 02

Regtest workflows

KEY DEFINITIONS

Terms used in this lesson

Regtest
A private Bitcoin test network where the operator can create blocks instantly for repeatable experiments.
Coinbase transaction
The special first transaction in a Bitcoin block, which claims permitted subsidy and fees and has no ordinary prior-output input.
RPC
Remote procedure call: the command interface applications use to ask a Bitcoin node to perform operations or return state.
Outpoint
A transaction ID plus output number that identifies one exact prior output.
Transaction ID
The identifier produced by hashing a Bitcoin transaction’s non-witness serialization.
UTXO
Unspent transaction output: one discrete chunk of bitcoin that can be used as a transaction input.
Oracle
A system that reports outside information, such as a market price, for use by a protocol.

A private deterministic chain enables instant mining, reorgs, policy experiments, and repeatable failure tests.

45 min Difficulty 3/5 Not started

Loading lesson visuals...

01

Learn the idea

Regtest is a private Bitcoin network mode where the operator controls block production and can create deterministic test chains without public funds. It uses separate network parameters, addresses, ports, and data directories. Tests can mine blocks instantly, create reorgs, set policy conditions, and reset all state.

GUIDED EXPLANATION1/5 ideas inspected
1

Create an isolated data directory

Start bitcoind with regtest and an explicit temporary directory so tests cannot touch mainnet wallets or another run's state.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionRegtest behavior proves a transaction will relay and confirm identically on mainnet.

Consensus logic can be exercised, but public peer topology, miner policy, fees, timing, adversaries, and software versions differ.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.