Skip to content

GaslessCashoutParams

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / GaslessCashoutParams

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17498

Parameters for building a gasless cash-out transaction.

connection: Connection

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17500

Solana RPC connection


stealthAddress: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17502

Stealth address holding the tokens (base58)


ephemeralPublicKey: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17504

Ephemeral public key from the payment (base58)


viewingPrivateKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17506

Recipient’s viewing private key (hex)


spendingPrivateKey: `0x${string}`

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17508

Recipient’s spending private key (hex)


destinationAddress: string

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17510

Final destination address (base58)


mint: PublicKey

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17512

SPL token mint


relayerPublicKey: PublicKey

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17514

Relayer public key — the transaction fee-payer (must hold SOL)


relayerFeeAccount: PublicKey

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17516

Relayer’s token account that receives the fee (ATA for mint)


feeConfig: RelayerFeeConfig

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17518

Fee model


optional version?: "1" | "2"

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17520

Announcement scheme version: ‘2’ canonical (default) | ‘1’ legacy


optional tokenProgramId?: PublicKey

Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:17526

SPL token program owning the mint — defaults to the classic Token program; pass TOKEN_2022_PROGRAM_ID for Token-2022 mints. A wrong program id derives the wrong ATA and targets the wrong program (on-chain failure).