DUCAT’SBitcoin Guild
All curriculum
COMPLETE TRANSACTION GUIDE

Bitcoin transactions from intent to confirmation

Follow one payment from selected UTXOs through exact serialization, authorization, relay policy, fee competition, block inclusion and possible replacement or reorganization. Every specialist lesson below contributes one part of the same state transition.

13 connected lessons Practice in every lesson
01

See the whole system first

Each specialist lesson expands one relationship in this end-to-end map.

  1. 01
    Select outputs

    Every input names an exact prior transaction output and spends it whole.

  2. 02
    Create outputs

    Payment and change become new amounts locked to new scripts.

  3. 03
    Serialize

    Version, vectors, scripts, witness and locktime become canonical bytes.

  4. 04
    Authorize

    Each witness satisfies the previous output's locking condition for this transaction.

  5. 05
    Relay

    Nodes apply consensus preconditions and local mempool policy before forwarding.

  6. 06
    Confirm

    A valid block spends old UTXOs and creates the new ones atomically.

You will be able to construct, decode, price and debug a transaction and explain txid, wtxid, RBF, CPFP, policy and confirmation risk.

02

Run the mechanism here

Predict first, execute exact bytes or rules, then change one input and inspect the first failed boundary.

EXACT MECHANISM WORKBENCH

Build and decode every transaction field

Serialize one input, two outputs, ScriptSig, ScriptPubKeys, witness, sequence, and locktime. Then decode the exact bytes, calculate the fee, and compare txid with wtxid after a witness change.

Predict the dependency
Required cases complete: 0/2.
6 LIVE BITCOIN UTILITIES

Calculate bitcoin transactions from intent to confirmation

Use real learner input rather than a prewritten answer. Every result is calculated locally from the fields shown and invalid data fails closed.

Bytes

Reverse Bytes

Reverse complete hexadecimal bytes without reversing the characters inside each byte.

Ready to calculate

Change any field, predict what should change, then run the utility.

Safety boundary: This learning surface does not store inputs. Never paste a live seed phrase, private key, wallet backup, or confidential transaction.

03

Follow the mechanism in order

Start at the top for a guided route, or open any lesson directly.

01

The UTXO model

A UTXO is a specific unspent transaction output; transactions consume whole outputs and create new ones.

Teach, predict, run, explain
02

Inputs, outputs, and change

Inputs reference prior outpoints and provide witnesses; outputs assign values to new locking conditions.

Teach, predict, run, explain
03

Serialization and txids

Version, vectors, scripts, sequence, witness, and locktime serialize deterministically; txid and wtxid commit to different data.

Teach, predict, run, explain
04

Fees, weight, and vbytes

Fees equal inputs minus outputs, while feerates use virtual size derived from transaction weight.

Teach, predict, run, explain
05

Coin selection

Wallets trade off fees, privacy, change, consolidation, and future spending cost when selecting UTXOs.

Teach, predict, run, explain
06

Mempool policy versus consensus

Nodes can reject relay or mining of a consensus-valid transaction under local policy without making it invalid forever.

Teach, predict, run, explain
07

Confirmations and finality

Confirmations measure accumulated proof of work after inclusion; required depth depends on value, threat model, and protocol configuration.

Teach, predict, run, explain
08

RBF

Replace-by-fee uses sequence and mempool rules to replace an unconfirmed transaction with a higher-fee conflict.

Teach, predict, run, explain
09

CPFP and package economics

A child can pay enough fee for miners to include a low-fee parent when the package feerate is attractive.

Teach, predict, run, explain
10

Timelocks

nLockTime, sequence, CLTV, and CSV constrain when transactions or spending paths become valid.

Teach, predict, run, explain
11

Raw transaction inputs and outputs

Decode outpoints, ScriptSig, sequence, amounts, ScriptPubKeys, CompactSize lengths, and locktime directly from serialized transaction bytes.

Teach, predict, run, explain
12

Witnesses, wtxids, and block commitments

Trace witness serialization, txid versus wtxid, the coinbase witness reserved value, and the witness commitment that binds SegWit data into a block.

Teach, predict, run, explain
13

The complete mempool lifecycle

Follow admission, relay, conflicts, RBF replacement, block connection, reorg reconsideration, expiry, size eviction, and local policy differences.

Teach, predict, run, explain
04

Keep these boundaries clear

These distinctions stop the most consequential mistakes in this topic.

  • Input amounts come from the referenced previous outputs, not the input serialization.
  • Consensus validity does not guarantee that every node will relay or every miner will select a transaction.
  • A confirmation reduces replacement risk but does not create instant, absolute irreversibility.