Skip to content
Developer Handbook

Introduction

On this page

Follow a 50,000-satoshi payment on Bitcoin Cash, from your receiving address to the block that confirms the payment.

One payment, three amounts

Your wallet receives 100,000 satoshis in one unspent transaction output (UTXO). A satoshi (sat) is one hundred-millionth of a BCH (0.00000001 BCH). When you pay someone, an input identifies the existing UTXO and spends it in full. Your transaction creates two new UTXOs, one for the payment and one for your change.

Your paymentOne UTXO spent · Two created
Existing UTXO100,000 sats

The remaining 300 sats are the transaction fee. The miner who includes the payment in a block can claim it.

All three UTXOs in this example use pay to public key hash (P2PKH), the most common script used for standard payments. Each UTXO has a locking script that commits to the hash of a public key. To spend one later, the wallet provides that public key and a signature made with its private key.

Try a simulated payment

Derive the receiving address, find its funding UTXO, and inspect the signed payment. Then follow CashVM, the engine that runs the spending scripts, as it checks the input.

To broadcast and mine the same payment, open the Transaction Lab in a new tab, leave Mocknet selected, and keep the default recipient, amount, and fee.

Follow the payment through the handbook

Next, derive the receiving address. Then find the UTXO it received, decode the payment bytes, and run the scripts that authorize the spend.

Try it on Chipnet

Choose Chipnet in the lab when you want to send a live test transaction. The lab saves its Chipnet wallet in your browser. Copy its address, request test sats from the Chipnet faucet, and choose Check for funding. Build, sign, and broadcast with the amount available. Follow your transaction from broadcast to confirmation in the Chipnet explorer.