<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=Anchor_output</id>
	<title>Anchor output - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.bitcoin.it/w/index.php?action=history&amp;feed=atom&amp;title=Anchor_output"/>
	<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Anchor_output&amp;action=history"/>
	<updated>2026-09-12T07:30:19Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://en.bitcoin.it/w/index.php?title=Anchor_output&amp;diff=71273&amp;oldid=prev</id>
		<title>NotATether: Create Anchor output stub (LN option_anchors vs P2A / ephemeral)</title>
		<link rel="alternate" type="text/html" href="https://en.bitcoin.it/w/index.php?title=Anchor_output&amp;diff=71273&amp;oldid=prev"/>
		<updated>2026-09-12T04:45:50Z</updated>

		<summary type="html">&lt;p&gt;Create Anchor output stub (LN option_anchors vs P2A / ephemeral)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;An &amp;#039;&amp;#039;&amp;#039;anchor output&amp;#039;&amp;#039;&amp;#039; is a small transaction output left on a presigned transaction so a later child-pays-for-parent spend can attach fees at broadcast time. On the [[Lightning Network]], BOLT 3 &amp;lt;code&amp;gt;option_anchors&amp;lt;/code&amp;gt; uses two &amp;#039;&amp;#039;&amp;#039;keyed&amp;#039;&amp;#039;&amp;#039; P2WSH anchors (typically 330 satoshis each). That design is distinct from [[Pay-to-anchor]] (P2A), which is a keyless native segwit output template (BIP 433), and from an [[Ephemeral_anchor|ephemeral anchor]], which is a usage pattern that creates and spends a P2A output in the same unconfirmed [[TRUC]] package so it never persists in the UTXO set.&lt;br /&gt;
&lt;br /&gt;
A Lightning commitment is signed long before either party broadcasts it. If the commitment pays too low a feerate it may not confirm in time; if it pays too high, the parties overpay. Signing many feerate variants is unwieldy. Leaving the commitment underpaying and attaching a child that spends an output of the commitment lets fees be chosen later. Ordinary mempool descendant limits can still be exhausted by a counterparty who attaches many descendants, blocking child-pays-for-parent. Bitcoin Core&amp;#039;s CPFP carve-out granted one extra descendant under conditions Lightning met by giving each party its own small keyed anchor.&lt;br /&gt;
&lt;br /&gt;
Under &amp;lt;code&amp;gt;option_anchors&amp;lt;/code&amp;gt;, each commitment includes &amp;lt;code&amp;gt;to_local_anchor&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;to_remote_anchor&amp;lt;/code&amp;gt;. Each is a P2WSH whose witness script requires that party&amp;#039;s funding key, or after 16 blocks any spend (&amp;lt;code&amp;gt;OP_16 CHECKSEQUENCEVERIFY&amp;lt;/code&amp;gt;). The owner can spend immediately to fee-bump; after 16 blocks anyone can sweep an abandoned anchor. Two keyed anchors exist so one party cannot occupy the only fee-bumping output. The commitment itself still usually pays a modest fee so it is not entirely dependent on the child.&lt;br /&gt;
&lt;br /&gt;
Keyed anchors add weight on every commitment, require a UTXO to fund the child, can litter the UTXO set if unswept, and depend on CPFP carve-out (not granted to TRUC transactions and removed with cluster mempool in Bitcoin Core 31.0). Protocols that need a guaranteed fee-bump path on that stack are expected to migrate toward TRUC packages and a single shared P2A / ephemeral-anchor style output. Some deployments still use keyed anchors when peers do not relay TRUC packages or when only a designated key should attach fees.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Ephemeral_anchor|Ephemeral anchor]]&lt;br /&gt;
* [[Pay-to-anchor]]&lt;br /&gt;
* [[TRUC]]&lt;br /&gt;
* [[Lightning Network]]&lt;br /&gt;
* [[Package relay]]&lt;br /&gt;
* [[Replace by fee]]&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
* [https://github.com/lightning/bolts/blob/master/03-transactions.md BOLT 3: Bitcoin Transaction and Script Formats]&lt;br /&gt;
* [https://bitcoinops.org/en/topics/ephemeral-anchors/ Bitcoin Optech: Ephemeral anchors]&lt;br /&gt;
* [https://github.com/bitcoin/bips/blob/master/bip-0433.mediawiki BIP 433: Pay to Anchor (P2A)]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technical]]&lt;/div&gt;</summary>
		<author><name>NotATether</name></author>
	</entry>
</feed>