Skip to content

WrapResult

SIP Protocol API Reference v0.7.4


SIP Protocol API Reference / WrapResult

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21353

Result of a wrap operation

IMPORTANT: Always check success before accessing other fields! The csplMint and encryptedBalance are only present when success is true.

success: boolean

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21355

Whether the wrap operation succeeded


optional signature: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21357

Transaction signature (only if success)


optional csplMint: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21359

The C-SPL token mint address (only if success)


optional encryptedBalance: Uint8Array<ArrayBufferLike>

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21361

The encrypted balance after wrapping (only if success)


optional error: string

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21363

Error message (only if !success)


optional token: CSPLToken

Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21365

Token info (only if success)