RoutedQuote
Defined in: protocol-swap2-core/dist/types.d.ts:110
The router’s chosen quote, tagged with how it scored.
Extends
Section titled “Extends”Properties
Section titled “Properties”depositAddress
Section titled “depositAddress”depositAddress:
string
Defined in: protocol-swap2-core/dist/types.d.ts:77
Inherited from
Section titled “Inherited from”depositMemo
Section titled “depositMemo”depositMemo:
string|null
Defined in: protocol-swap2-core/dist/types.d.ts:78
Inherited from
Section titled “Inherited from”destAmount
Section titled “destAmount”destAmount:
string
Defined in: protocol-swap2-core/dist/types.d.ts:82
Inherited from
Section titled “Inherited from”etaSeconds
Section titled “etaSeconds”etaSeconds:
number
Defined in: protocol-swap2-core/dist/types.d.ts:94
Estimated time to delivery.
Inherited from
Section titled “Inherited from”
optionalfees?:object[]
Defined in: protocol-swap2-core/dist/types.d.ts:86
Honest itemized fees when the provider exposes base-unit amounts.
amount
Section titled “amount”amount:
string
description?
Section titled “description?”
optionaldescription?:string
included
Section titled “included”included:
boolean
token:
string
type:
"protocol"|"network"|"affiliate"|"other"
Inherited from
Section titled “Inherited from”feeUsd
Section titled “feeUsd”feeUsd:
number
Defined in: protocol-swap2-core/dist/types.d.ts:84
Inherited from
Section titled “Inherited from”intentId
Section titled “intentId”intentId:
string
Defined in: protocol-swap2-core/dist/types.d.ts:76
Provider’s id for this swap; tracked with trackIntent.
Inherited from
Section titled “Inherited from”minDestAmount
Section titled “minDestAmount”minDestAmount:
string
Defined in: protocol-swap2-core/dist/types.d.ts:83
Inherited from
Section titled “Inherited from”provider
Section titled “provider”provider:
string
Defined in: protocol-swap2-core/dist/types.d.ts:74
Provider name.
Inherited from
Section titled “Inherited from”providerData?
Section titled “providerData?”
optionalproviderData?:Record<string,string>
Defined in: protocol-swap2-core/dist/types.d.ts:100
Provider-owned, JSON-safe facts required to revalidate execution.
Inherited from
Section titled “Inherited from”reliability
Section titled “reliability”reliability:
number
Defined in: protocol-swap2-core/dist/types.d.ts:96
Provider’s reliability hint, 0 to 1.
Inherited from
Section titled “Inherited from”routeScore
Section titled “routeScore”routeScore:
object
Defined in: protocol-swap2-core/dist/types.d.ts:111
candidates
Section titled “candidates”candidates:
object[]
Every validated route: score is its value against the best (0..1).
score:
number
weights
Section titled “weights”weights:
ScoreWeights
sourceAmount
Section titled “sourceAmount”sourceAmount:
string
Defined in: protocol-swap2-core/dist/types.d.ts:81
Inherited from
Section titled “Inherited from”txRequest?
Section titled “txRequest?”
optionaltxRequest?:TxRequest
Defined in: protocol-swap2-core/dist/types.d.ts:80
Present instead of a usable depositAddress for calldata providers.
Inherited from
Section titled “Inherited from”validUntilMs
Section titled “validUntilMs”validUntilMs:
number
Defined in: protocol-swap2-core/dist/types.d.ts:98
Quote expiry, unix milliseconds.