RankedQuote
Defined in: protocol-swap2-router/src/router.ts:41
A validated quote with its place in the auction.
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”netValueUsd
Section titled “netValueUsd”netValueUsd:
number|null
Defined in: protocol-swap2-router/src/router.ts:43
Net USD value (valueUsd), or null when the auction compared raw outputs.
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”relativeValue
Section titled “relativeValue”relativeValue:
number
Defined in: protocol-swap2-router/src/router.ts:45
This quote’s value against the best one, 0..1 (1 = the best price).
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”sourceAmount
Section titled “sourceAmount”sourceAmount:
string
Defined in: protocol-swap2-core/dist/types.d.ts:81
Inherited from
Section titled “Inherited from”tags: (
"best"|"fastest")[]
Defined in: protocol-swap2-router/src/router.ts:47
“best”: the pick (best price; faster/more reliable among equal prices). “fastest”: the lowest ETA.
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.