Skip to content

WrapResult

SIP Protocol API Reference v0.15.1


SIP Protocol API Reference / WrapResult

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

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-GLbkPPho.d.ts:21691

Whether the wrap operation succeeded


optional signature?: string

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

Transaction signature (only if success)


optional csplMint?: string

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

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


optional encryptedBalance?: Uint8Array<ArrayBufferLike>

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

The encrypted balance after wrapping (only if success)


optional error?: string

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

Error message (only if !success)


optional token?: CSPLToken

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

Token info (only if success)