THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Mempool Explained: From Broadcast to Confirmation

permalink THAMER
#bitcoin-core#bitcoin-mempool#fee-rate#rbf#transaction-relay#unconfirmed-transaction

The Bitcoin mempool is a node's local collection of valid, unconfirmed transactions it is willing to retain for possible relay and mining. There is no single global mempool shared identically by all nodes. Different nodes may observe different transactions or apply different relay and resource policies.

A transaction's path

A wallet creates and signs a transaction, then submits it to a Bitcoin node or broadcast service. The receiving node checks consensus-related validity and its own mempool acceptance policies. If accepted, it may relay the transaction to peers. A miner can select transactions for a candidate block, often considering feerate and package relationships.

A transaction may be seen by one node but absent from another. It can also be evicted, expire, be replaced under applicable relay policies, or become invalid because another transaction spends the same input. Therefore, seeing a transaction in a mempool is evidence of observation, not a guarantee of future inclusion.

Fees and feerates

The absolute fee is measured in satoshis. Feerate is commonly expressed in satoshis per virtual byte (sat/vB), reflecting transaction weight. A larger transaction can pay a higher total fee while offering a lower feerate than a smaller transaction. Mining selection and relay policy are not identical, and neither is a consensus rule that fixes a universal confirmation time.

Replace-by-fee and fee bumping

Replacement rules depend on node policy and deployment settings. A wallet may use replacement strategies when supported, or child-pays-for-parent (CPFP) by spending an unconfirmed output with an economically attractive descendant. A replacement can change outputs, so payment processors should not treat a mempool observation as irreversible.

Confirmation and reorganization

Once a transaction appears in the active chain, it has one confirmation in the containing block. Subsequent blocks increase its depth. A chain reorganization can remove a previously confirmed transaction from the active chain, so confirmation depth reduces risk but does not create an absolute guarantee.

Practical monitoring

Track transaction identifiers, observed states, block inclusion, replacement/conflict signals, and chain reorganizations. Do not conflate seen, accepted by my node, and confirmed in API responses. Explain whether your application uses a local node's mempool or an external provider's observations.

References

  • Bitcoin Core mempool RPC documentation: https://bitcoincore.org/en/doc/
  • Bitcoin developer guide: https://developer.bitcoin.org/devguide/transactions.html
  • BIP125 (historical opt-in full RBF signaling): https://github.com/bitcoin/bips/blob/master/bip-0125.mediawiki

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects