ZcashQuote
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / ZcashQuote
Interface: ZcashQuote
Section titled “Interface: ZcashQuote”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8851
Quote response
Properties
Section titled “Properties”quoteId
Section titled “quoteId”quoteId:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8853
Unique quote identifier
sourceChain
Section titled “sourceChain”sourceChain:
ZcashSwapSourceChain
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8855
Source chain
sourceToken
Section titled “sourceToken”sourceToken:
ZcashSwapSourceToken
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8857
Source token
amountIn
Section titled “amountIn”amountIn:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8859
Input amount (in source token’s smallest unit)
amountInFormatted
Section titled “amountInFormatted”amountInFormatted:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8861
Input amount formatted
amountOut
Section titled “amountOut”amountOut:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8863
Output amount in zatoshis (1 ZEC = 100,000,000 zatoshis)
amountOutFormatted
Section titled “amountOutFormatted”amountOutFormatted:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8865
Output amount in ZEC
exchangeRate
Section titled “exchangeRate”exchangeRate:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8867
Exchange rate (ZEC per source token)
networkFee
Section titled “networkFee”networkFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8869
Network fee in source token
swapFee
Section titled “swapFee”swapFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8871
Bridge/swap fee in source token
totalFee
Section titled “totalFee”totalFee:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8873
Total fee in source token
slippage
Section titled “slippage”slippage:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8875
Slippage tolerance (basis points)
minimumOutput
Section titled “minimumOutput”minimumOutput:
bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8877
Minimum output amount after slippage
validUntil
Section titled “validUntil”validUntil:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8879
Quote expiration timestamp
depositAddress
Section titled “depositAddress”depositAddress:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8881
Deposit address (where to send source tokens)
estimatedTime
Section titled “estimatedTime”estimatedTime:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8883
Estimated time to completion (seconds)
privacyLevel
Section titled “privacyLevel”privacyLevel:
PrivacyLevel
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:8885
Privacy level for the swap