TRUC Transaction (Topologically Restricted Until Confirmation)
TRUC transactions enforce strict topology rules in Bitcoin's mempool to prevent transaction pinning attacks.
Key Takeaways
- A TRUC transaction is a Bitcoin transaction that sets nVersion=3 to opt into strict mempool topology rules: at most one unconfirmed parent, at most one unconfirmed child (capped at 1,000 vB), and a parent size limit of 10,000 vB.
- These restrictions eliminate transaction pinning attacks where an adversary attaches large, low-fee descendants to block fee-bumping, making CPFP and RBF dramatically cheaper and more reliable for two-party contracts.
- Defined in BIP 431 and shipped in Bitcoin Core 28.0 (October 2024), TRUC is a mempool policy rule, not a consensus rule: miners can still include non-compliant transactions in valid blocks, but relay nodes enforce the topology constraints.
What Is a TRUC Transaction?
A TRUC (Topologically Restricted Until Confirmation) transaction is a Bitcoin transaction that opts into a stricter set of mempool relay rules by setting its version field (nVersion) to 3. The name describes the core idea: the transaction's position in the unconfirmed transaction graph is restricted until it confirms in a block.
TRUC transactions were previously called "v3 transactions" during development, a reference to the nVersion=3 signaling mechanism. The community later adopted the TRUC acronym because it describes what the policy actually does rather than just the version number. Both terms refer to the same BIP 431 specification, authored by Gloria Zhao. For the full technical specification, see the v3 transaction glossary entry.
The motivation behind TRUC is a specific class of mempool attacks called transaction pinning. In protocols like Lightning, two parties share pre-signed transactions that must confirm within a timelock window. If a malicious counterparty can prevent the honest party from fee-bumping a shared transaction, funds can be stolen. TRUC solves this by constraining the unconfirmed transaction graph so that pinning becomes economically trivial to overcome.
How It Works
Standard Bitcoin mempool policy allows a transaction to have up to 25 unconfirmed ancestors and 25 unconfirmed descendants, with a combined descendant size of up to 101,000 vB. These generous limits create two pinning vectors:
- Package limit pinning: an attacker fills the descendant budget with low-feerate children, blocking the victim's CPFP attempt entirely.
- Absolute fee pinning: an attacker attaches a large, low-feerate child so that any RBF replacement must cover the absolute fee of the original plus all descendants, making replacement prohibitively expensive.
TRUC eliminates both vectors by imposing tight topology constraints on unconfirmed transaction chains. For a detailed analysis of pinning mechanics and how TRUC addresses them, see Bitcoin transaction pinning attacks.
Topology Rules
When a transaction sets nVersion=3, Bitcoin Core enforces these additional relay rules:
- One unconfirmed ancestor maximum: a TRUC transaction can spend at most one unconfirmed output, and that parent must also be a TRUC transaction.
- One unconfirmed descendant maximum: a TRUC transaction in the mempool can have at most one unconfirmed child, and that child must also be TRUC.
- Parent size cap of 10,000 vB (sigop-adjusted virtual size): the TRUC parent transaction cannot exceed this limit.
- Child size cap of 1,000 vB (sigop-adjusted virtual size): the fee-bumping child is kept small to bound replacement costs.
- Implicit replaceability: all TRUC transactions are replaceable automatically, with no way to opt out of RBF.
- Zero-fee parent allowed: a TRUC parent may pay 0 fees when submitted as a package with a fee-paying child via package relay.
Sibling Eviction
A key mechanism that makes TRUC effective is sibling eviction. When a TRUC parent already has one unconfirmed child in the mempool and a new, higher-feerate child is submitted, the existing child is evicted and replaced. This means that in a two-party contract, either party can always attach a fee-bumping child: if the counterparty already attached one, the honest party simply submits a higher-feerate child that evicts the attacker's.
Because the child is capped at 1,000 vB, the worst-case cost of evicting an attacker's child is roughly 100x smaller than under standard mempool rules. This bounded cost is what makes TRUC practical for Lightning and other time-sensitive protocols.
Opting In
Creating a TRUC transaction requires setting the nVersion field to 3. Previous standard versions were 1 (original Bitcoin) and 2 (introduced with BIP 68 for relative timelocks). Version 3 had no prior standard usage, making it available for TRUC signaling without breaking existing transactions.
# Standard transaction (version 2)
# Hex starts with: 02000000...
# TRUC transaction (version 3)
# Hex starts with: 03000000...
# Using Bitcoin Core RPC to create a v3 transaction:
bitcoin-cli createrawtransaction \
'[{"txid":"abcd...","vout":0}]' \
'[{"bc1q...":0.001}]' \
0 3
# The final argument (3) sets nVersion=3, opting into TRUCRelationship to Ephemeral Anchors
TRUC is one component of a larger mempool improvement stack. Its full power emerges when combined with two related features:
- Pay-to-Anchor (P2A): defined in BIP 433, P2A is a keyless output script (
OP_1 <0x4e73>) that anyone can spend without a signature. It replaces Lightning's per-party anchor outputs with a single, smaller output. - Ephemeral dust policy: added in Bitcoin Core 29.0 (April 2025), this allows a single dust-value output in a zero-fee TRUC transaction, provided the output is spent in the same package. The anchor is created and consumed atomically, never bloating the UTXO set.
The combination of TRUC + P2A + ephemeral dust is what the ephemeral anchor term describes. A zero-fee TRUC commitment transaction includes a tiny P2A output. Either channel party can spend that anchor with a fee-paying TRUC child, setting the effective feerate at broadcast time rather than at channel open. For a deeper look at the full stack, see Pay-to-Anchor and v3 fee-bumping.
Use Cases
Lightning Network Force-Closes
TRUC's primary use case is securing Lightning Network force-close transactions. Current commitment transactions are pre-signed with a feerate chosen at channel-open time or adjusted via update_fee negotiation. If mempool feerates spike, the pre-signed feerate may be too low, and the commitment gets stuck. With TRUC, commitments can be pre-signed at zero fee with an ephemeral anchor, and either party can CPFP at broadcast time with a feerate that reflects current conditions.
The Lightning specification for this approach is tracked in BOLTs PR #1228, which defines zero-fee commitment channels. For more context on how v3 transactions and package relay solve Lightning's fee-bumping problem, see v3 transactions and package relay for Lightning.
HTLC Resolution
Lightning HTLC timeout and success transactions also benefit from TRUC. These transactions must confirm within specific timelock windows, making them vulnerable to the same pinning attacks as commitment transactions. Using TRUC ensures either party can reliably fee-bump HTLC-resolving transactions during periods of high congestion.
Two-Party Contract Settlement
Any pre-signed transaction shared between counterparties can use TRUC to guarantee reliable fee-bumping. This includes submarine swaps, atomic swaps, discreet log contracts, and other contract protocols where timely confirmation is critical. The package relay implementation comparison tool tracks which Bitcoin implementations support these features.
TRUC and Cluster Mempool
Bitcoin Core 31.0 (April 2026) replaced the legacy mempool with a cluster mempool architecture. This change removed the CPFP Carve Out policy entirely, which Lightning previously relied on as a partial pinning mitigation. Protocols that depended on the carve-out are expected to migrate to TRUC, which provides stronger and more general protections.
Under cluster mempool, transaction replacements are accepted only when they produce a strictly better feerate diagram for the mempool. TRUC transactions interact cleanly with this model because their constrained topology (at most two transactions in a cluster) makes replacement evaluation simple and predictable. For a deeper look at how cluster mempool works, see cluster mempool explained.
Why It Matters
TRUC addresses a fundamental tension in Bitcoin Layer 2 protocols: transactions must be pre-signed but cannot predict future fee conditions. Without TRUC, a sophisticated attacker can exploit the gap between signing time and broadcast time to pin shared transactions, potentially stealing funds from Lightning channels and other time-locked contracts.
For platforms like Spark, which builds on Bitcoin's UTXO model for off-chain transfers, mempool policy improvements like TRUC strengthen the security guarantees of the broader Bitcoin ecosystem. As more Layer 2 protocols adopt TRUC for their on-chain settlement transactions, the attack surface for pinning shrinks across the network.
Risks and Considerations
Policy, Not Consensus
TRUC is enforced at the mempool policy level, not the consensus level. Blocks containing transactions that violate TRUC topology rules are still valid. A miner cooperating with an attacker could include a pinning transaction directly in a block template, bypassing relay policy. In practice, this requires direct miner collaboration, which is costly and difficult to sustain at scale.
Child Size Constraints
The 1,000 vB child limit restricts how many inputs the fee-bumping child can include. If a user needs to aggregate multiple UTXOs to pay fees, they may not fit within a single TRUC child. Applications should maintain UTXOs of sufficient individual value for fee-bumping. The fee-bumping guide covers strategies for managing fee-bumping UTXOs.
Network Adoption
TRUC relay requires nodes running Bitcoin Core 28.0 or later. During the transition period, TRUC transactions may not propagate through older nodes that treat nVersion=3 as non-standard. As adoption of 28.0+ increases across the network, relay reliability improves. With the removal of CPFP Carve Out in Bitcoin Core 31.0, the transition to TRUC becomes the recommended path for all contract protocols.
Homogeneous Version Requirement
All unconfirmed ancestors and descendants of a TRUC transaction must also be TRUC. Mixing v3 and non-v3 transactions in the same unconfirmed chain is not allowed. Once transactions confirm, this restriction no longer applies: a confirmed TRUC output can be spent by any transaction version. This requirement prevents attackers from circumventing topology limits by using non-TRUC intermediaries.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.