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:

Checking running process
Generate 101 blocks

Create a wallet and a miner address:

Create Wallet

Mine 101 blocks to unlock coinbase outputs:

Mine block
Send Bitcoin to 2 new addresses

Generate two new recipient addresses:

Generate new addresses

Send 0.25 BTC to each:

Send to Multiple Recipients
Confirm the transaction

Mine 1 block:

Mine block
Output full raw transaction

Retrieve and decode the transaction:

Mine block

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)

Example

Capstone Start: Initializing Regtest Node...

Node running

Wallet 'capstone' created

Mined 101 blocks

Sending 0.25 BTC to two new addresses

TXID: a6c1f...89

Mined confirmation block

🔍 Raw Transaction:

Sample body request

🔍 Decoded Transaction:

Decoded Transaction (JSON)
Did you find this page useful?