fulfillHTLC
@totemsdk/omnia / fulfillHTLC
Function: fulfillHTLC()
fulfillHTLC(
channel,htlcId,preimage,leaseProvider,signer?):Promise<{channel:OmniaChannel;error?:string;partialState:Partial<SignedChannelState>; }>
Recipient reveals preimage; HTLC amount moves to recipient balance in new state.
Spec: fulfillHTLC(channel, htlcId, preimage, leaseProvider) — signer optional.
Parameters
channel
htlcId
string
preimage
string
leaseProvider
WotsLeaseProvider
signer?
Returns
Promise<{ channel: OmniaChannel; error?: string; partialState: Partial<SignedChannelState>; }>