Capstone Project: Bitcoin Core CLI Automation
Goal
Build a complete command-line tool or script that simulates a full Bitcoin transaction cycle using bitcoind, bitcoin-cli, and regtest.
This project tests your ability to:
Operate and script around a Bitcoin Core node
Manage wallets and UTXOs
Create, sign, and broadcast raw transactions
Work entirely from the command line or via a scripting language
Project Specification
Your tool (Bash, Python, or any CLI language) should do the following:
Start a Bitcoin node in regtest mode
Check if bitcoind is already running. If not, start it with:
Generate 101 blocks
Create a wallet and a miner address:
Mine 101 blocks to unlock coinbase outputs:
Send Bitcoin to 2 new addresses
Generate two new recipient addresses:
Send 0.25 BTC to each:
Confirm the transaction
Mine 1 block:
Output full raw transaction
Retrieve and decode the transaction:
Success Criteria
Your tool must:
Be runnable from a single command or script
Wallet balance before and after TX
The full transaction hex
The decoded transaction JSON
Handle errors gracefully (e.g. wallet already exists)
🔍 Raw Transaction:
🔍 Decoded Transaction: