addHTLC
@totemsdk/omnia / addHTLC
Function: addHTLC()
addHTLC(
channel,params,leaseProvider,signer?):Promise<{channel:OmniaChannel;error?:string;htlcId:string;partialState:Partial<SignedChannelState>; }>
Adds a Hash Time-Locked Contract as a conditional output in the next state update.
Spec: addHTLC(channel, htlcParams, leaseProvider) — signer is optional, falls back
to channel.localSigner.
Parameters
channel
params
leaseProvider
WotsLeaseProvider
signer?
Returns
Promise<{ channel: OmniaChannel; error?: string; htlcId: string; partialState: Partial<SignedChannelState>; }>