Skip to content

Foundations of Blockchain Technology

Back to subtopics

Blockchain Transaction Lifecycle

Tx Demo ~5 minMedium

Create → Validate → Mempool → Include → Confirm → Finalize

Create & sign
Wallet forms tx and signs with private key.
Broadcast & validate
Nodes check rules and propagate to peers.
Include & confirm
Block includes tx; each new block adds confidence.
  • Stages & confirmations
Detailed Notes
Key Highlights
  • Transaction Creation: Users initiate transactions through wallets that construct transaction data including sender, recipient, amount, and fees, then cryptographically sign the transaction using their private key to prove ownership and authorization.
  • Network Propagation: Once signed, transactions are broadcast to peer nodes which validate the transaction against consensus rules before propagating it further, creating a mempool of pending transactions waiting for inclusion in a block.
  • Block Inclusion and Confirmations: Miners or validators select transactions from the mempool to include in blocks. Each subsequent block built on top increases the number of confirmations, making the transaction more secure against chain reorganizations.

The transaction lifecycle represents the complete journey of a blockchain transaction from creation to finalization. It begins when a user creates a transaction through their wallet software, specifying recipients and amounts. The wallet cryptographically signs the transaction using the user's private key, creating a digital signature that proves authorization without revealing the key itself. This signed transaction is then broadcast to the network, where nodes validate it against a comprehensive set of rules including sufficient balance, valid signatures, correct formatting, and compliance with smart contract requirements. Valid transactions enter the mempool—a collection of pending transactions maintained by each node. Miners or validators select transactions from their mempool based on factors like fee priority, with higher-fee transactions typically included first. When a block is produced, it includes selected transactions, at which point the transaction is considered "included." However, security increases with each subsequent block built on top, as each block represents a confirmation that makes chain reorganization (which could reverse the transaction) exponentially more expensive. Finality mechanisms provide additional guarantees beyond probabilistic confirmation, especially in Proof of Stake systems where economic penalties make finalized transactions effectively irreversible.

Transaction Creation Process
  • Input selection: Choose UTXOs (for UTXO models) or account balance (for account models)
  • Output specification: Define recipient addresses and amounts
  • Fee calculation: Set transaction fees based on network conditions
  • Signing: Cryptographic signature using private key proves authorization
Validation Rules
  • Balance verification: Sender must have sufficient funds
  • Signature validation: Cryptographic proof must be valid
  • Nonce checking: Prevents replay attacks (account-based) or double-spending (UTXO)
  • Smart contract constraints: Must satisfy contract logic if applicable
Mempool Dynamics
  • Size limits: Nodes may cap mempool size under high load
  • Fee prioritization: Higher fees increase inclusion likelihood
  • Transaction replacement: Some networks allow fee bumping for stuck transactions
  • Time expiration: Old transactions may be dropped if not included
Security Considerations
  • Confirmations: More confirmations reduce reorg risk
  • Finality: Economic finality in PoS provides stronger guarantees
  • Network partitions: Transactions may be valid in one partition but not another
  • Front-running: Miners/validators can reorder transactions for profit
Presenter Notes
  • Point out UX: pending states vs confirmed/finalized.
  • Discuss reorg risk and why multiple confirmations are advised.