buildGaslessCashout()
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / buildGaslessCashout
Function: buildGaslessCashout()
Section titled “Function: buildGaslessCashout()”buildGaslessCashout(
params):Promise<GaslessCashoutBuild>
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17557
Build a gasless cash-out transaction.
Derives the stealth signer from the recipient’s keys, computes the fee-from-claim, assembles a two- (or three-) instruction transaction with the relayer as fee-payer, and pre-signs with the stealth scalar. The relayer must add its own signature before broadcasting.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<GaslessCashoutBuild>
Throws
Section titled “Throws”If the relayer fee >= the gross claim amount (nothing left for the recipient)