Skip to main content
Creates a receiver spend transaction for an HTLC using the preimage.

Method Signature

Parameters

string
required
The HTLC transaction hex
string
required
The hash used in the HTLC
string
required
Public key for the hash lock destination
string
required
Public key for the sequence lock destination
string
required
The preimage to unlock the HTLC
number
required
Fee rate in sats per vbyte

Returns

string
required
The signed receiver spend transaction hex

Example