ZcashQuote
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / ZcashQuote
Interface: ZcashQuote
Section titled “Interface: ZcashQuote”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8924
Quote response
Properties
Section titled “Properties”quoteId
Section titled “quoteId”quoteId:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8926
Unique quote identifier
sourceChain
Section titled “sourceChain”sourceChain:
ZcashSwapSourceChain
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8928
Source chain
sourceToken
Section titled “sourceToken”sourceToken:
ZcashSwapSourceToken
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8930
Source token
amountIn
Section titled “amountIn”amountIn:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8932
Input amount (in source token’s smallest unit)
amountInFormatted
Section titled “amountInFormatted”amountInFormatted:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8934
Input amount formatted
amountOut
Section titled “amountOut”amountOut:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8936
Output amount in zatoshis (1 ZEC = 100,000,000 zatoshis)
amountOutFormatted
Section titled “amountOutFormatted”amountOutFormatted:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8938
Output amount in ZEC
exchangeRate
Section titled “exchangeRate”exchangeRate:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8940
Exchange rate (ZEC per source token)
networkFee
Section titled “networkFee”networkFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8942
Network fee in source token
swapFee
Section titled “swapFee”swapFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8944
Bridge/swap fee in source token
totalFee
Section titled “totalFee”totalFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8946
Total fee in source token
slippage
Section titled “slippage”slippage:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8948
Slippage tolerance (basis points)
minimumOutput
Section titled “minimumOutput”minimumOutput:
bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8950
Minimum output amount after slippage
validUntil
Section titled “validUntil”validUntil:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8952
Quote expiration timestamp
depositAddress
Section titled “depositAddress”depositAddress:
string
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8954
Deposit address (where to send source tokens)
estimatedTime
Section titled “estimatedTime”estimatedTime:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8956
Estimated time to completion (seconds)
privacyLevel
Section titled “privacyLevel”privacyLevel:
PrivacyLevel
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:8958
Privacy level for the swap