LogoLogo
Back to AppHelp Center
  • Getting Started
    • Welcome
  • OrdinalsBot API
    • Overview
    • Libraries
    • Template-App
    • Signet
    • Testnet
    • Getting Prices
      • Getting Prices (Legacy)
    • Create a Direct Inscription Order
    • Create a Managed Inscription Order
    • Get Order Status
    • Create a Collection
    • Create a Collection Order
    • Create Text Inscription Order
    • Search Inscriptions
    • Check Rare Sats Inventory
    • Referral Scheme
    • Transaction Accelerator
    • Burning Assets
    • Webhooks
    • Order States
    • Order Types
  • Runes
    • Etch
    • Mint
    • Direct Mint
      • 1. Generate Direct Mint PSBT
      • 2. Direct Rune Mint Process PSBT
    • Launchpad
      • Create
      • Mint
      • Get Launchpad
    • Airdrop
  • Token Pay
    • What is TokenPay?
    • API Docs
      • API reference
        • Order
        • Create payment psbt
        • Create burn rune psbt
        • Validate burn rune tx
        • Create burn inscription psbt
        • Utils
          • Checktx
          • Submittx
          • Finalize psbt
        • User
          • Withdrawal
          • Order
            • Rune
          • Account
            • Withdraw
            • Balance
      • Specification
  • Marketplace
    • User Guide: Pre-Inscribed Launchpad API
    • API Docs
      • Data API
    • Editions Launchpad
  • Launchpad API
    • Create Marketplace
    • Create a new Launchpad
    • Retrieve Launch PSBT
    • Confirm Launch
    • Check Allocation
    • Check for Padding Outputs
    • Setup Padding Outputs
    • Create buy offer
    • Confirm buy offer
    • Get Launch Info
  • Sat Scanner API
    • Find Special Ranges
    • Find Special Ranges UTXO
    • Supported Satributes
  • Sat Extractor
    • Extract
  • BRC20 / BRC2.0PROG
    • OPI API
    • Bitcoin Remix
  • SNS API
    • SNS API
  • Mempool API
    • Mempool API
  • TAP PROTOCOL
    • Tap Reader API
  • UTXO
    • Split
  • User Guide
    • Inscribe your first Ordinal
    • Receiving Payments
  • Knowledge Base
    • Ordinals
      • What is an Ordinal?
      • Satoshi Rarity
      • What are BRC-20 Tokens?
      • Image Optimisation
      • Pixel Art
    • Bitcoin
      • Unspent Transaction Output (UTXO)
  • Official Links
    • Twitter
    • Discord
Powered by GitBook
On this page
  • Decoding the Mempool
  • Casting Bitcoin Transactions
  • The Mempool's Role in the Fee Market and Transaction Confirmation
  • Confirming Transactions: The Final Step
  • Wrapping Up
  1. Knowledge Base

Bitcoin

The Bitcoin Mempool, Fee Market, and Transaction Confirmation

PreviousPixel ArtNextUnspent Transaction Output (UTXO)

Last updated 1 year ago

The Bitcoin blockchain's decentralized architecture rests upon a series of complex processes that validate and confirm transactions. Key to these processes is the , which acts as a waypoint for pending transactions. This article delves deeper into the role of the and its critical function within the Bitcoin fee market and transaction confirmation process.

Decoding the Mempool

In Bitcoin parlance, the —short for 'memory pool'—is a holding area for Bitcoin transactions that have been broadcast to the network but are yet to be included in the blockchain. Each Bitcoin node houses its own and the size of these mempools varies as they are operator-defined.

A Bitcoin transaction, upon its initiation, lands in the , waiting for confirmation. Transactions do not remain in the indefinitely; those not picked up within a certain period (typically 14 days) are usually dropped. This doesn't mean the transaction has been cancelled or that the bitcoins are lost. Instead, the transaction is just no longer in that specific node's mempool. This situation typically happens when the network is congested, and there are more transactions than the block space allows. However, if the transaction is dropped from all nodes' mempools and still not picked up by a miner, it's as if the transaction never happened. The bitcoins never leave the sender's wallet. The sender can then choose to resend the transaction with a higher fee, increasing the likelihood of it being picked up by miners. Some Bitcoin wallets support a feature called Replace-by-Fee (RBF), which allows users to easily increase the fee on a transaction that's taking too long to confirm.

Casting Bitcoin Transactions

The initiation of a Bitcoin transaction occurs in the user's wallet. Here, the user defines the recipient's address and the amount to be transferred. The wallet then constructs a transaction message, which includes the sender's and recipient's details, the transfer amount, a transaction fee, and the sender's digital signature.

The transaction fee plays a pivotal role in this process. It acts as a monetary incentive for miners to prioritize the user's transaction when mining new blocks. Hence, the higher the fee, the more likely the transaction is to be processed quickly. This is the first hint at the fee market that develops around Bitcoin transactions.

Once constructed and signed, this transaction message is broadcast to the Bitcoin network. The mempool then steps into the equation.

The Mempool's Role in the Fee Market and Transaction Confirmation

Upon reaching the network, Bitcoin transactions are added to the of Bitcoin nodes. Nodes validate these transactions, verifying the sufficiency of the sender's Bitcoin balance and the authenticity of the digital signature.

Post-validation, transactions reside in the mempool, awaiting their turn to be included in a block. This is where the 'fee market' comes into play. Miners select transactions from the for the blocks they mine, typically prioritizing those with higher fees, leading to a competitive marketplace for transaction fees. This competition intensifies during periods of network congestion, with users ramping up transaction fees to secure faster transaction processing.

Once a miner mines a block containing the transaction, the transaction is confirmed, and the mined block becomes part of the blockchain. The nodes then update their version of the ledger, which simultaneously removes the confirmed transactions from the mempool, clearing space for new transactions.

Confirming Transactions: The Final Step

Once a transaction has been included in a block and that block has been added to the blockchain, we say that the transaction has one confirmation. Additional confirmations come as more blocks are added on top of the block containing the transaction, further securing it within the blockchain's history.

Most recipients require multiple confirmations before considering a transaction as fully validated, typically around six confirmations. This process ensures the finality and irreversibility of the transaction, further enhancing Bitcoin's robustness and security.

Wrapping Up

As the intersection between miners, wallets, and the blockchain, the mempool encapsulates the decentralized, secure, and transparent nature of Bitcoin, enabling the seamless operation of the Bitcoin fee market and transaction confirmation process.

The plays an instrumental role within the Bitcoin network, acting as a waiting area for transactions and a driver of the Bitcoin fee market. The dynamics of the mempool and miners' preferences contribute to the emergence of the fee market, thus impacting transaction costs and timings.

Furthermore, the role extends to the transaction confirmation process, a key security feature of Bitcoin transactions. Understanding the mempool's function allows users to better anticipate potential transaction fees and wait times, particularly during high network activity periods.

mempool
mempool
mempool
mempool
mempool
mempool
mempool
mempool
mempool
mempool's