Skip to main content

fulfillHTLC

@totemsdk/omnia


@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​

OmniaChannel

htlcId​

string

preimage​

string

leaseProvider​

WotsLeaseProvider

signer?​

ChannelSigner

Returns​

Promise<{ channel: OmniaChannel; error?: string; partialState: Partial<SignedChannelState>; }>