NormalizedAcrossQuote
Defined in: protocol-swap2-across/src/build.ts:24
What a quote source must say about one Across transfer, normalized from whatever it answers. Integers that can exceed 2^53 are canonical decimal strings (no sign, no leading zeros); times are unix seconds. Tokens are named as in the request — the ERC-20 contract, or the zero address for the native coin — never as the deposit names them.
Properties
Section titled “Properties”destinationChainId
Section titled “destinationChainId”destinationChainId:
number
Defined in: protocol-swap2-across/src/build.ts:28
EVM chain id the output is paid on.
exclusiveRelayer
Section titled “exclusiveRelayer”exclusiveRelayer:
string
Defined in: protocol-swap2-across/src/build.ts:47
The relayer that alone may fill until the exclusivity ends; the zero address for none.
exclusivityParameter
Section titled “exclusivityParameter”exclusivityParameter:
number
Defined in: protocol-swap2-across/src/build.ts:49
0 (no exclusivity), an offset in seconds up to one year from the deposit’s block, or a unix timestamp above that.
expectedFillTimeSec
Section titled “expectedFillTimeSec”expectedFillTimeSec:
number
Defined in: protocol-swap2-across/src/build.ts:51
Expected time from deposit to fill, seconds (display only).
expectedOutputAmount?
Section titled “expectedOutputAmount?”
optionalexpectedOutputAmount?:string
Defined in: protocol-swap2-across/src/build.ts:41
The quote source’s own estimate of what arrives, when it gives one (display only; above outputAmount it is refused).
expiresAtMs?
Section titled “expiresAtMs?”
optionalexpiresAtMs?:number
Defined in: protocol-swap2-across/src/build.ts:53
When the quote source stops standing by the numbers (unix ms), when it says.
optionalfees?:AcrossFeeBreakdown
Defined in: protocol-swap2-across/src/build.ts:55
The quote source’s breakdown of input − output (display only; must add up to it when given).
fillDeadline
Section titled “fillDeadline”fillDeadline:
number
Defined in: protocol-swap2-across/src/build.ts:45
The deposit’s fillDeadline (unix seconds, destination chain). Unfilled by then, the deposit is refunded.
inputAmount
Section titled “inputAmount”inputAmount:
string
Defined in: protocol-swap2-across/src/build.ts:34
Exact input, base units (decimal string).
inputToken
Section titled “inputToken”inputToken:
string
Defined in: protocol-swap2-across/src/build.ts:30
Input token: ERC-20 contract, or the zero address for the native coin.
orderId?
Section titled “orderId?”
optionalorderId?:string
Defined in: protocol-swap2-across/src/build.ts:57
The quote source’s own id for the transfer (Across API V5 orderId), kept for its status endpoint.
outputAmount
Section titled “outputAmount”outputAmount:
string
Defined in: protocol-swap2-across/src/build.ts:39
What the deposit asks relayers to pay the recipient, base units (decimal string). A relayer pays exactly this, so it is both the expected and the guaranteed output of the transfer.
outputToken
Section titled “outputToken”outputToken:
string
Defined in: protocol-swap2-across/src/build.ts:32
Output token: ERC-20 contract, or the zero address for the native coin.
quoteTimestamp
Section titled “quoteTimestamp”quoteTimestamp:
number
Defined in: protocol-swap2-across/src/build.ts:43
The deposit’s quoteTimestamp (unix seconds). The SpokePool accepts it for 3600 s.
sourceChainId
Section titled “sourceChainId”sourceChainId:
number
Defined in: protocol-swap2-across/src/build.ts:26
EVM chain id the deposit is sent on.