WrapResult
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / WrapResult
Interface: WrapResult
Section titled “Interface: 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.
Properties
Section titled “Properties”success
Section titled “success”success:
boolean
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21355
Whether the wrap operation succeeded
signature?
Section titled “signature?”
optionalsignature:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21357
Transaction signature (only if success)
csplMint?
Section titled “csplMint?”
optionalcsplMint:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21359
The C-SPL token mint address (only if success)
encryptedBalance?
Section titled “encryptedBalance?”
optionalencryptedBalance:Uint8Array<ArrayBufferLike>
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21361
The encrypted balance after wrapping (only if success)
error?
Section titled “error?”
optionalerror:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21363
Error message (only if !success)
token?
Section titled “token?”
optionaltoken:CSPLToken
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:21365
Token info (only if success)