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 Confirmation Economics: Feerates, Miner Selection, and Reorganization Risk

permalink THAMER
#bitcoin#confirmations#feerate#miner-incentives#reorgs

A Bitcoin transaction is confirmed when it is included in a valid block on the active chain. Before confirmation, a transaction may be held in some nodes' mempools, replaced under applicable policy, evicted, or simply never relayed to other nodes. Confirmation is not scheduled by the protocol, even when a wallet pays a high fee rate.

Fee rate and block-space competition

A transaction fee is the difference between input and output values. Fee rate relates that fee to transaction virtual size, usually in sat/vB. Miners have a finite block weight budget, so the effective revenue of a candidate transaction or ancestor package matters. A large absolute fee on a very large transaction may be less competitive than a smaller fee on a compact transaction.

Miners may use their own templates, policies, and preferences. The public mempool is not globally identical: peers receive transactions at different times, enforce local relay rules, and may have different mempool contents. Consequently, no public fee estimate can guarantee the next block.

What confirmations change

Once included in a block, the transaction is part of the active chain history. Each subsequent block increases the proof-of-work depth above it. Replacing that history requires a competing chain with greater accumulated work, and the cost and probability of doing so depend on the attacker's resources and network conditions.

A single confirmation is materially different from a mempool observation, but it is not mathematically irreversible. Applications choose confirmation requirements according to their own risk tolerance and payment context. There is no universal number that makes every payment risk-free.

Reorganization and fee sniping

A miner may theoretically try to replace a previous block to capture its transaction fees. A wallet's anti-fee-sniping locktime can make some newly created transactions ineligible for a replacement block at an earlier height. This is only a partial mitigation; it does not eliminate reorganization risk or guarantee that a payment will be confirmed.

Practical merchant and wallet design

Track transactions by identifiers and relevant spent outputs, monitor conflicts, distinguish mempool sightings from confirmations, and handle chain reorganizations. For high-value delivery, apply an explicit confirmation policy rather than assuming the first sighting is final. For time-sensitive payments, fee estimates and fee-bumping options can improve operational outcomes but should be described as probabilistic tools.

Primary references

Bitcoin Developer Guide — Transactions: https://developer.bitcoin.org/devguide/transactions.html

Bitcoin Developer Guide — Block Chain: https://developer.bitcoin.org/devguide/block_chain.html

Bitcoin whitepaper: https://bitcoin.org/bitcoin.pdf

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