BOMBARCHIVE
Explore

A living reference collection. Written in the wiki, preserved in Git.

The archiveBitcoin

Bitcoin transaction fees

Bitcoin transaction fees are the difference between the value of the coins spent by a non-coinbase transaction and the value of the outputs it creates. The miner who confirms that transaction can claim the difference through the block's coinbase transaction. Fees pay for transaction inclusion and compete for scarce block space; they are not a separate field in Bitcoin's transaction format. The first released Bitcoin code already calculated and collected them. Bitcoin v0.1.5 transaction-input accounting — direct source · Original block-reward calculation — direct source

Where the fee lives

For an ordinary transaction, the fee is:

fee = sum(input values) - sum(output values)

The transaction names earlier outputs through its inputs; a validator retrieves their values from Bitcoin's unspent-output history. The fee is not paid to an explicit address inside the spending transaction. Instead, the miner's coinbase may create at most the allowed block subsidy plus the fees of the transactions in that block. A miner need not claim the maximum. Bitcoin v0.1.5 ConnectInputs() · Original coinbase-value enforcement

Bitcoin's first confirmed non-coinbase transaction, in block 170 on 12 January 2009, spent a 50 BTC block-9 coinbase output and created outputs of 10 BTC and 40 BTC. Its recorded fee was zero. That example is useful precisely because it disproves the assumption that every confirmed Bitcoin transaction must pay a positive fee. Block-170 transaction — chain record · First Bitcoin transaction

Three decisions should remain separate:

Validity
A non-coinbase transaction cannot create more output value than it spends, and the block's coinbase cannot claim more than the subsidy and available fees. A positive fee is not a universal Bitcoin consensus requirement.
Relay and mempool policy
A node decides whether it will accept and propagate an unconfirmed transaction. Its fee floor and resource limits can change between software versions and configurations. See Transaction standardness.
Miner selection
A miner decides which eligible transactions to place in a block. A transaction can pass consensus and still be ignored, delayed or rejected by particular nodes' relay/mining policies.

What the 2009 client actually did

In Bitcoin v0.1.5, nTransactionFee was initially zero. The wallet's transaction builder compared its proposed fee against GetMinFee(true), increasing the fee when the function required it. The original GetMinFee() started with (1 + floor(serialized_bytes / 1000)) × 0.01 BTC, then could discount that to zero for a transaction under 10,000 bytes, before restoring at least 0.01 BTC if an output was smaller than 0.01 BTC. That exact arithmetic, including its integer boundary, comes from source; it should not be silently restated as a universal protocol-wide “one cent per kilobyte.” Original setting · Original wallet fee check · Original policy function

The miner called the same function with the discount flag enabled only while pblock->vtx.size() < 100. The function then required serialized_bytes < 10000 before applying the free allowance. The block's transaction vector already contained a coinbase transaction, so even the miner's count was not a simple promise of one hundred additional free payments. Outputs smaller than 0.01 BTC could still trigger the fee. Miner-selection implementation

This is the earliest tagged implementation BOMB has inspected, not proof that no earlier draft used a different schedule, and not a survey of how independent miners actually configured their nodes.

2010–2011: free space, small outputs and competing defaults

By Bitcoin v0.3.15, the code defined free space in terms of the proposed block's byte size: transactions below 25,000 bytes could qualify while the block remained below 40,000 bytes, and transactions below 3,000 bytes could qualify below 50,000 bytes. The minimum-fee calculation also increased as a generated block approached its configured size limit. These were block-construction policy tests, not a new rule requiring every valid block to charge a minimum fee. Bitcoin v0.3.15 GetMinFee() — direct source

Bitcoin v0.3.17 used another schedule: a 27,000-byte free area in block construction, combined with transaction priority based on input value and age. Satoshi Nakamoto's 25 November 2010 release announcement explicitly listed free-transaction limits and the restoration of the wallet's transaction-fee setting. The public announcement supports the release chronology; the source establishes the actual tests. Direct source · Miner priority and fee checks · Contemporary release announcement

The 27 April 2011 Bitcoin 0.3.21 release allowed the wallet interface to send amounts below 0.01 BTC but warned users that sending less than 0.01 BTC still required a 0.01 BTC fee. Its mempool code also rate-limited fee-free transaction relay to deter flooding. “Small amount,” “dust,” “free relay” and “minimum consensus fee” were not interchangeable concepts even then. 0.3.21 release — contemporary first-party · Relay throttling — direct source

A revealing mismatch appeared with Bitcoin 0.3.22 on 5 June 2011. Its release notes said nodes would accept and relay transactions under a 0.0005 BTC fee schedule, while the wallet still charged 0.01 BTC per kilobyte until the next release. The relay threshold, wallet default and miner's eventual selection were distinct moving parts, not one universal fee dictated by Bitcoin. Bitcoin 0.3.22 release — contemporary first-party

In May 2013, Bitcoin 0.8.2 added a different filter: transactions creating very small spendable outputs became non-standard under its default dust policy. The original announcement cited 5,430 sats, but the released IsDust() formula actually gave 5,460 sats for an ordinary P2PKH output; a June source correction fixed the mistaken example. This judged the future cost of spending an output, not the amount of fee a transaction was required by consensus to pay. Dust outputs follows the original PR, correction, SegWit-era calculation and later package exception. Bitcoin 0.8.2 release · June 2013 code-comment correction

From hard-coded fees to estimation

Bitcoin Core 0.9.0, released 19 March 2014, lowered the default minimum relay/mining rate to 0.01 mBTC per kilobyte (0.00001 BTC per kB). Its release notes separately described how miners reserved a high-priority area and selected other transactions by fee per kilobyte. This remains a description of default implementation behaviour, not consensus validation. Bitcoin Core 0.9.0 — release record

Bitcoin Core 0.10.0 (February 2015) introduced fee estimation based on observed confirmation behaviour. The release explicitly contrasted the new estimator with earlier hard-coded fees and priorities, added estimatefee, and recorded estimator statistics in fee_estimates.dat. Wallets could now adjust fees to a desired confirmation target instead of assuming one fixed rate always worked. Bitcoin Core 0.10.0 — release record

On 14 September 2017, Core 0.15.0 removed its remaining coin-age-priority and free-relay machinery, including -sendfreetransactions, -blockprioritysize and -limitfreerelay. Its release notes explicitly said only a few miners still used priority-based selection by that point. The historical ability to relay free transactions under a privileged priority rule should not be projected onto modern Core defaults. Nor did removing that relay path change consensus to forbid zero-fee transactions in blocks. Bitcoin Core 0.15.0 — first-party release · 2017 announcement archive

SegWit, virtual size and inscription transactions

Segregated Witness changed the resource accounting in August 2017. Under BIP 141, a transaction's weight is base_size × 3 + total_size; virtual size is ceil(weight / 4). Wallets and nodes compare fee rates in satoshis per virtual byte (sat/vB). A witness byte contributes less to weight than a non-witness byte, but it still consumes block capacity. BIP 141 — direct specification

Inscriptions use Taproot witness data to reveal content. Their economic cost therefore depends on the full reveal transaction's weight, its chosen fee rate and competing demand for block space. Neither “one inscription” nor “one Bitmap” is a fixed-fee Bitcoin transaction class. A Bitmap claim is an application interpretation of an inscription reveal, not a special Bitcoin consensus fee. Bitcoin Stamps instead historically used output-based encodings whose costs and ongoing UTXO effects differ from witness storage. Ordinals implementation documentation · Bitcoin Stamps

Increasing a transaction's fee can change its prospects before confirmation. Transaction replacement and child-pays-for-parent fee bumping concern mempool policy and miner incentives, not retroactive edits to a confirmed inscription reveal.

Later defaults: lower floors and package economics

Fee sponsorship through a child transaction gained new primitives in Bitcoin Core 28.0 (official announcement dated 2 October 2024; the GitHub release entry was published 5 October). Its pay-to-anchor (P2A) policy made a tiny keyless output standard to spend, so a third party could supply fees by spending the anchor in a child transaction without holding the creator's anchor private key. Core 29.0 (official announcement dated 14 April 2025; GitHub entry published 15 April) separately introduced ephemeral dust, under which a qualifying zero-fee parent may carry a below-dust output if it is consumed in the transaction package. Version-3 TRUC topology restrictions are another separate policy, not a part of the P2A script. BIP 433 preserves why these distinct mechanisms were developed and why a later ord output-decoding regression made this history relevant to indexers. Core 28.0 release · Core 29.0 release · BIP 433

Bitcoin Core 30.0, released 10 October 2025, lowered its default minimum relay and incremental replacement rates to 0.1 sat/vB, and its default block-template minimum to 0.001 sat/vB. The same release explicitly left the dust feerate, the wallet's minimums and the estimator's floor unchanged. Its mempool minimum could still rise under congestion; the new default was not a promise that a 0.1-sat/vB transaction would propagate to all miners. Bitcoin Core 30.0 — release record

Bitcoin Core 31.0, released 19 April 2026, made a more subtle distinction visible. It allowed one-parent-one-child package relay in which the parent can be below -minrelaytxfee, even at zero fee, when the package qualifies under the policy. Its cluster mempool also evaluates related transactions together for mining, eviction and replacement, and its estimator began tracking rates from 0.1 sat/vB. A zero-fee parent in a qualifying paid package does not reinstate the old general free-relay allowance. Dated announcement · Core 31.0 release notes — first-party

Package relay has both a general meaning and a specific proposed wire protocol. BIP 331 described negotiated ancestor-package messages in 2022–2024, but Bitcoin Core's subsequent fee-bumping improvements followed a limited, opportunistic peer-to-peer path. The broader Core implementation project was declared complete in January 2026 even though its BIP 331 demonstration branch closed without merge in September 2025. Describing Core's actual package-relay feature as an implementation of the BIP's message protocol would conflate these records. Unmerged BIP 331 demonstration · Actual Core implementation · Project completion statement

Questions for the next archivist

Open question
Identify and verify the first positive-fee non-coinbase transaction in the canonical mainnet chain from raw transaction bytes rather than an explorer's fee label.
Open question
Trace the exact commits and release chronology between v0.3.15 and v0.3.17 that altered free-space and priority selection, and compare miner code to wallet behaviour.
Open question
Compare observed early miner fee selection against the reference client's policy without assuming all miners ran identical software or respected the documented free area.