SwapResult
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / SwapResult
Interface: SwapResult
Section titled “Interface: SwapResult”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4618
Result of executing a swap
Properties
Section titled “Properties”requestId
Section titled “requestId”requestId:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4620
Request ID
quoteId
Section titled “quoteId”quoteId:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4622
1Click quote ID
depositAddress
Section titled “depositAddress”depositAddress:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4624
Deposit address for input tokens
amountIn
Section titled “amountIn”amountIn:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4626
Expected input amount
amountOut
Section titled “amountOut”amountOut:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4628
Expected output amount
status
Section titled “status”status:
OneClickSwapStatus
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4630
Current status
depositTxHash?
Section titled “depositTxHash?”
optionaldepositTxHash:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4632
Deposit transaction hash (after deposit)
settlementTxHash?
Section titled “settlementTxHash?”
optionalsettlementTxHash:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4634
Settlement transaction hash (after success)
stealthRecipient?
Section titled “stealthRecipient?”
optionalstealthRecipient:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4636
Stealth address for recipient (if privacy mode)
ephemeralPublicKey?
Section titled “ephemeralPublicKey?”
optionalephemeralPublicKey:string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4638
Ephemeral public key (for recipient to derive stealth key)
optionalfees:SwapFeeDisclosure
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:4640
Fee disclosure (if fees enabled)