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.
Properties
Section titled “Properties”amountUsd?
Section titled “amountUsd?”
optionalamountUsd?: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
Section titled “destinationAmount”destinationAmount:
bigint
Defined in: protocol-swap2-across/src/api.ts:116
V5’s estimate of what arrives (destination.amount).
destinationGas
Section titled “destinationGas”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
Section titled “expectedFillTimeMs”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
Section titled “originGas”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
Section titled “totalFee”totalFee:
bigint
Defined in: protocol-swap2-across/src/api.ts:114
fee.totalFee.amount: input − destination.amount (checked to add up).