Skip to main content
£0.00 0

Basket

No products in the basket.

ASIC mining articles and advice

BIP 131 Coalescing Transactions Explained

BIP 131 coalescing transactions explained as a closed hard-fork proposal using wildcard inputs to aggregate same-script UTXOs and their risks.

BIP 131 Coalescing Transaction Specification (wildcard inputs) guide cover

BIP 131 Coalescing Transactions: This guide explains BIP 131 "Coalescing Transaction" Specification (wildcard inputs) in plain English. It covers the problem behind the BIP, why it matters and whether the proposal is part of Bitcoin today.

TL;DR

  • What it is: BIP 131 proposed a coalescing transaction type whose wildcard inputs could spend all eligible UTXOs sharing a scriptPubKey, reducing repeated outpoints and signatures. It changed transaction version semantics and historical UTXO validation.
  • Why it matters: BIP 131 traded compact inputs for global wildcard state and new consensus complexity. Its closed design highlights UTXO-consolidation pressure, but current Bitcoin requires explicit outpoints and supported transaction formats.
  • Current position: The hard-fork proposal is Closed and must not be treated as a transaction type accepted by Bitcoin mainnet.

BIP 131 Coalescing Transactions in simple English

BIP 131 Coalescing Transactions: The proposal reinterpreted part of the transaction version field as a type. Type zero represented ordinary transactions and type one enabled coalescing semantics for all inputs.

Simple example

A node operator is checking BIP 131 Coalescing Transactions. A wildcard input represented all qualifying outputs with the exact same scriptPubKey at or before a defined chain position.

Key terms in plain English

BIP:
Bitcoin Improvement Proposal: a document describing a proposed rule, standard or process. Its status must be checked separately.
Bitcoin Core:
Widely used software that validates Bitcoin and can provide wallet, network and operator tools.
Consensus:
The shared rules full nodes use to decide whether blocks and transactions are valid.
UTXO:
An unspent transaction output: a piece of bitcoin that can be used as an input to a later transaction.
Node:
A computer running Bitcoin software that checks data and communicates with other peers.

The UTXO consolidation target

Spending many small outputs normally lists every outpoint and supplies the required unlocking data, which can cost more than the value recovered. BIP 131 tried to aggregate outputs paying the same script, shrinking explicit input data and making small same-address outputs economical to sweep.

Transaction type encoding

The proposal reinterpreted part of the transaction version field as a type. Type zero represented ordinary transactions and type one enabled coalescing semantics for all inputs. Altering established version interpretation and introducing new valid transactions made this a hard fork rather than an optional wallet feature.

Wildcard input meaning

A wildcard input represented all qualifying outputs with the exact same scriptPubKey at or before a defined chain position. Validation had to search and sum that set, ensure outputs did not exceed it and mark every member spent. The transaction therefore depended on global historical state rather than named outpoints alone.

BIP 131 Coalescing Transaction Specification (wildcard inputs) technical diagram
Wildcard input meaning: the fields, validation boundary and operational evidence that implementations need to agree.

Effects on ordinary validation

Nodes also had to reject a later ordinary spend when its outpoint had already been consumed by a coalescing transaction. Indexing only conventional spent flags was insufficient unless the wildcard effect had been expanded deterministically. Reorganisation and pruning behaviour would need exact state rollback.

Privacy and address reuse

The proposal argued that receiver address reuse differed from reusing change. Coalescing by script still links all matching outputs and can reveal ownership relationships. Economic consolidation does not remove privacy cost, key-reuse exposure or the operational danger of an old published address whose key was lost.

Resource and denial-of-service risk

Finding every historical UTXO matching a script can require extra indexes, memory and worst-case scans. Attackers could target popular scripts or construct adversarial sets. Consensus validation must have deterministic bounded cost; a convenient wallet notification cannot solve the full-node resource boundary.

Private-chain experiment

Implement a small indexed UTXO set on an isolated fork and create matching outputs across several blocks. Test the height boundary, insufficient aggregate value, later ordinary spends, reorganisation, pruning and a very large match set. Compare the wildcard transaction with an explicit modern consolidation transaction and quantify saved bytes against new validation cost.

Frequently asked questions

What is the main point of BIP 131 Coalescing Transactions?

BIP 131 Coalescing Transactions: The proposal reinterpreted part of the transaction version field as a type.

For BIP 131 Coalescing Transactions, what should a beginner know about the UTXO consolidation target?

Spending many small outputs normally lists every outpoint and supplies the required unlocking data, which can cost more than the value recovered.

For BIP 131 Coalescing Transactions, what should a beginner know about transaction type encoding?

The proposal reinterpreted part of the transaction version field as a type.

For BIP 131 Coalescing Transactions, what should a beginner know about wildcard input meaning?

A wildcard input represented all qualifying outputs with the exact same scriptPubKey at or before a defined chain position.

Conclusion

BIP 131 traded compact inputs for global wildcard state and new consensus complexity. Its closed design highlights UTXO-consolidation pressure, but current Bitcoin requires explicit outpoints and supported transaction formats.

Primary sources

Check the current specification status and the documentation for the exact implementation you operate before moving production funds or changing a mining node.

ASIC MINER PICKS

Recommended ASIC Mining Hardware

Compare three of our highest ranked ASIC miners currently available, with live product details and pricing.
Browse all ASIC miners
MORE MINING ADVICE

More ASIC Mining Articles

Read practical advice about choosing hardware, calculating electricity costs, setting up miners, hosting and maintenance.
MINER COMMUNITY

Join the ASIC Mining Discussion

Ask a question or share what has worked for you. Your experience may help another miner make a better decision.

Members can read and join the discussion

Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.

Log in to read comments Register to join the discussion

Membership helps us protect the discussion from spam and keep answers useful.

ASIC MINING SUPPORT

Need Help Choosing an ASIC Miner?

Tell us what you want to mine, your electricity cost and where the machine will run. We can help you compare hardware, power requirements, hosting and repairs.
Contact our mining team
Browse ASIC miners