ReclaimPath
The two ways to spend a P2WSH bond lockup back out. Set as path in BuildReclaimOpts and FinalizeReclaimOpts.
Usage
import type { ReclaimPath } from '@stacks/bitcoin-staking';
const path: ReclaimPath = 'locktime';Definition
type ReclaimPath = 'locktime' | 'early-exit';Values
Value
Description
'locktime'
The OP_IF branch of the lockup script. Needs the staker's signature, and the transaction's nLockTime must reach the unlock height the script commits to through OP_CHECKLOCKTIMEVERIFY
'early-exit'
The OP_ELSE branch. Needs a signature for the bond's early-unlock subscript, the staker's signature, and the 32-byte preimage from computeRegisterPreimage. No locktime applies
Was this helpful?