Bitcoin Transaction

Definition: A Bitcoin transaction records how value is spent under Bitcoin’s consensus rules. Ordinary transactions consume earlier unspent transaction outputs (UTXOs) as inputs and create new outputs with spending conditions; each block also has a special coinbase transaction that creates the block subsidy and collects fees.12

NetworkBitcoin; transaction rules are applied by nodes on each network.
InputsReferences to earlier unspent outputs, with data that satisfies their spending conditions.
OutputsAmounts in satoshis and scripts that define how those amounts may be spent.
FeeThe difference between total input value and total output value.
DirectoryBitcoin Directory

Inputs, outputs, and value

Bitcoin uses the unspent transaction output model. An input identifies a previous transaction and the particular output being spent. It also supplies the unlocking data required by that output’s script. Depending on the output type, that data may appear in the input’s script field, its witness data, or both. A valid transaction must satisfy the spending conditions and may not spend the same UTXO twice.12

Each new output states a value in satoshis and a locking script, often called the output script or scriptPubKey. A receiving address is a human-readable way for wallet software to communicate a destination or spending condition; the transaction output itself records the value and script. If the combined input value is greater than the value sent to outputs, the difference is the transaction fee. A wallet will often create a change output to return the remainder to an address it controls, while accounting for the fee.1

From wallet construction to confirmation

StageWhat happens
BuildA wallet selects UTXOs, chooses recipient and change outputs, and estimates a fee.
SignThe wallet or signing devices produce the data needed to satisfy each input’s spending conditions.
RelayThe transaction is shared with peers. A node may keep and relay it in its mempool if it passes that node’s consensus checks and local relay policy.
IncludeA miner may select the transaction for a block, often considering fee revenue and block limits.
ConfirmNodes validate the block. Each later block built on top adds another confirmation, though reorganization risk declines gradually rather than reaching mathematical zero.

A transaction in a mempool is unconfirmed: it has not yet been included in a block, and different nodes may have different mempool contents. Relay policy is also distinct from consensus. A node can refuse to relay a transaction under its local policy even when the transaction would be valid in a block, and a miner can choose which valid transactions to include. An unconfirmed transaction is therefore not a final settlement.12

Fees and fee changes

Bitcoin does not set a fixed transaction fee. The fee is the input-output difference, while the fee rate compares that fee with the transaction’s virtual size or weight. During periods of limited block space, a higher fee rate may improve the chance of prompt confirmation, but it cannot guarantee a particular block or time. Wallet estimates can be wrong as demand changes. Replace-by-fee (RBF) and child-pays-for-parent (CPFP) are common methods for adjusting incentives for unconfirmed transactions; their availability and behavior depend on transaction details, software support, and node or miner policy.34

Privacy and safe review

Transactions are public once broadcast and, when confirmed, recorded on the blockchain. Multiple inputs can reveal that their UTXOs were controlled together, and address reuse can make related payments easier to connect. These patterns do not automatically identify a person, but outside information may link activity to an identity. A transaction does not contain a recipient’s legal name or a private key; it contains public transaction data and the signatures or witness material needed for validation.1

Before signing or broadcasting, check the receiving network, output addresses, amounts, change output, and fee in trusted wallet software. A valid signature proves authorization under the relevant key or script; it does not prove that a payment request is honest or that the intended service will deliver what it promised.

History

  • January 3, 2009: Bitcoin’s genesis block was mined. Its coinbase transaction created the block subsidy recorded in that first block.2
  • August 2017: Segregated Witness activated at block 481,824, adding witness serialization for supported transaction types and changing how transaction identifiers are calculated for those transactions.5
  • November 2021: Taproot activated at block 709,632, adding a new output and script-spending path that Bitcoin transactions can use when wallet software supports it.6

Page updated: November 10, 2026.

Related Terms

Related Articles

See Also

Sources

  1. Bitcoin Developers. “Transactions.” Bitcoin Developer Guide. Accessed November 10, 2026. Transactions guide.
  2. Bitcoin Developers. “Block Chain.” Bitcoin Developer Guide. Accessed November 10, 2026. Block-chain guide.
  3. Bitcoin Improvement Proposals. “BIP 125: Opt-in Full Replace-by-Fee Signaling.” Accessed November 10, 2026. BIP 125.
  4. Bitcoin Optech. “Fee Estimation.” Accessed November 10, 2026. Fee-estimation topic.
  5. Bitcoin Improvement Proposals. “BIP 141: Segregated Witness (Consensus Layer).” Activated in August 2017. Accessed November 10, 2026. BIP 141.
  6. Bitcoin Improvement Proposals. “BIP 341: Taproot: SegWit Version 1 Spending Rules.” Accessed November 10, 2026. BIP 341.