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