Skip to content

API ReferenceLOC lifecycleFunction

~~signCancelLOCSignature()~~

function signCancelLOCSignature(
ctx,
params
): Promise<CreateSignatureResponse<LOCCancellationSignature>>;

Signs, with the connected wallet, a beneficiary authorization that lets another account cancel the LOC before it expires. Pass the returned signature as CancelLOCParams.beneficiaryAuthorization; the wallet must be the LOC’s beneficiary.

Parameters

ParameterTypeDescription
ctxSDKContextThe SDK context.
paramsCancelLOCSignatureParamsThe necessary parameters to create the signature.

Returns

Promise<CreateSignatureResponse<LOCCancellationSignature>>

The response containing the signature or the error(s) encountered.

Deprecated

Use sdk.loc.buildCancelAuthorizationWorkflow so the exact definition is inspectable before signing.