Countdown covenant. Each spend decrements the count parameter by one. When count reaches zero the covenant terminates and the UTXO is free. Provides a finite-hop covenant chain with deterministic termination. No Tapscript equivalent.
RecursionInvertible
Ladder Diagram
Fields
Field
Data Type
Size
Side
Description
count
NUMERIC
1-4 B
Conditions
Remaining hop count (≥ 0). Decremented by 1 on each spend. Covenant terminates when count reaches 0.
Count value determines the exact number of covenanted hops remaining. A count of 0 means the covenant is already satisfied.
Use Cases
N-Hop Payment Channels
A payment channel that allows exactly N intermediate hops before the funds become unencumbered. Each routing hop decrements the counter, ensuring the payment reaches its destination within a bounded number of steps.
Finite State Machines
Combined with other blocks, implements a state machine with a known maximum number of transitions. The count acts as a fuel meter, guaranteeing termination after N state changes.
Countdown Triggers
A multi-party protocol where N participants must each sign and forward the UTXO. After all N parties have acted (count reaches 0), the final output is free to be spent without restrictions.