Regtest workflows
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.
Loading lesson visuals...
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.
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 every idea above to open it.
Consensus logic can be exercised, but public peer topology, miner policy, fees, timing, adversaries, and software versions differ.
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.