Skip to content
docs

AcrossV5Price

Defined in: protocol-swap2-across/src/api.ts:112

What a V5 quote says that the pricing rule reads — every amount in base units of the input token.

optional amountUsd?: number

Defined in: protocol-swap2-across/src/api.ts:128

origin.amountUsd, when given: the transfer’s size in dollars (the floor curve for ETH from an L2 is by size).


destinationAmount: bigint

Defined in: protocol-swap2-across/src/api.ts:116

V5’s estimate of what arrives (destination.amount).


destinationGas: bigint | null

Defined in: protocol-swap2-across/src/api.ts:124

Σ gasEstimates[leg = "destination", effect = "included_in_transfer_fee"], converted alike; null when a leg cannot be.


expectedFillTimeMs: number

Defined in: protocol-swap2-across/src/api.ts:126

expectedFillTimeMs. Over a minute it is not an Across relayer fill: V5 prices another rail (acrossV5OtherRail).


originGas: bigint

Defined in: protocol-swap2-across/src/api.ts:122

Σ gasEstimates[leg = "origin", effect = "included_in_transfer_fee"]: V5’s own execution step on the origin chain, charged inside its fee. Exact wei on an ETH route; a token route converts its USD figure at the destination token’s price, rounded down. A leg that cannot be read adds nothing (the fee stays higher).


totalFee: bigint

Defined in: protocol-swap2-across/src/api.ts:114

fee.totalFee.amount: input − destination.amount (checked to add up).