Skip to main content

createHTLCDescriptor

@totemsdk/core


@totemsdk/core / createHTLCDescriptor

Function: createHTLCDescriptor()

createHTLCDescriptor(address, ownerPublicKey, recipientPublicKey, hashLock, timeoutBlock, isOwner, preimage?): ScriptDescriptor

Parameters

address

string

ownerPublicKey

string

recipientPublicKey

string

hashLock

string

timeoutBlock

bigint

isOwner

boolean

preimage?

string

Returns

ScriptDescriptor