Skip to content
docs

Quote

Defined in: protocol-swap2-core/src/types.ts:74

A normalized quote from one provider.

depositAddress: string

Defined in: protocol-swap2-core/src/types.ts:79


depositMemo: string | null

Defined in: protocol-swap2-core/src/types.ts:80


destAmount: string

Defined in: protocol-swap2-core/src/types.ts:84


etaSeconds: number

Defined in: protocol-swap2-core/src/types.ts:90

Estimated time to delivery.


optional fees?: object[]

Defined in: protocol-swap2-core/src/types.ts:88

Honest itemized fees when the provider exposes base-unit amounts.

amount: string

optional description?: string

included: boolean

token: string

type: "protocol" | "network" | "affiliate" | "other"


feeUsd: number

Defined in: protocol-swap2-core/src/types.ts:86


intentId: string

Defined in: protocol-swap2-core/src/types.ts:78

Provider’s id for this swap; tracked with trackIntent.


minDestAmount: string

Defined in: protocol-swap2-core/src/types.ts:85


provider: string

Defined in: protocol-swap2-core/src/types.ts:76

Provider name.


optional providerData?: Record<string, string>

Defined in: protocol-swap2-core/src/types.ts:96

Provider-owned, JSON-safe facts required to revalidate execution.


reliability: number

Defined in: protocol-swap2-core/src/types.ts:92

Provider’s reliability hint, 0 to 1.


sourceAmount: string

Defined in: protocol-swap2-core/src/types.ts:83


optional txRequest?: TxRequest

Defined in: protocol-swap2-core/src/types.ts:82

Present instead of a usable depositAddress for calldata providers.


validUntilMs: number

Defined in: protocol-swap2-core/src/types.ts:94

Quote expiry, unix milliseconds.