Error
Reference
PreviewQuote
Price a trade without persisting it or requiring addresses.
POST
Error
GetQuote, minus the persistence. No quote hash is produced and nothing can be deposited against the result. Use it for the amount field of a swap form.
Request
string
required
Source chain name, lowercase.
string
required
Destination chain name, lowercase.
string
required
Source token address.
string
required
Destination token address.
string
required
Amount in the source token’s base units.
string
required
Native asset to deliver on the destination, in base units. Empty string for none.
uint32
Floor for the destination swap leg, in basis points.
uint32
Floor for the source swap leg, in basis points.
Referrer[]
Referrer addresses and their basis points, so the preview matches what the quote will charge.
recipient or refund_address: nothing is bound.
Response
string
Expected output, net of every fee.
string
Floor implied by the applied slippage.
uint32
Slippage actually applied.
FeeBreakdown
Itemized costs, identical in shape to a quote’s.
bool
True when the pair resolves to a same-chain swap rather than a bridge.
string
Notional input value in USD micros. Optional.
string
Notional output value in USD micros. Optional.
uint64
Estimated seconds from deposit to fulfillment, the median over recent orders on the same chain pair and route type. Absent when there is no history and no configured default for the destination chain.
Notes
Preview and quote use the same pipeline, so the numbers agree at the same instant. They diverge only as the market moves between the two calls, which is why a confirmation screen should show a freshly fetched quote rather than the last preview. Errors are identical toGetQuote.Authorizations
Body
application/json
Response
OK
Required range:
x >= 0Estimated seconds from deposit to fulfillment, the median of recent orders on this route. Absent when no estimate is available.
Required range:
x >= 0