Skip to content
docs

Swap2Quote

Defined in: protocols/swap2.ts:92

A price for a swap, before anything is signed. Amounts in base units.

optional estimatedDuration?: number

Defined in: protocols/swap2.ts:102

Seconds.


optional expiry?: number

Defined in: protocols/swap2.ts:104

Unix seconds.


fees: Swap2Fee[]

Defined in: protocols/swap2.ts:100

Every fee, network and protocol.


fromTokenAmount: bigint

Defined in: protocols/swap2.ts:94

What leaves the wallet.


optional priceImpact?: number

Defined in: protocols/swap2.ts:106

Decimal, 0.01 = 1 %.


toTokenAmount: bigint

Defined in: protocols/swap2.ts:96

Expected delivery.


toTokenAmountMin: bigint

Defined in: protocols/swap2.ts:98

Least the swap may deliver after slippage; below it the swap reverts or refunds.