Skip to content
docs

AcrossRequest

Defined in: protocol-swap2-across/src/verify.ts:119

What the user asked for — the only thing a deposit is compared against. Addresses in any casing.

amount: bigint

Defined in: protocol-swap2-across/src/verify.ts:129

Exact input, base units.


depositor: string

Defined in: protocol-swap2-across/src/verify.ts:131

The account that signs the deposit: its depositor (refunds, and the only key that can sign a speed-up).


destChain: string

Defined in: protocol-swap2-across/src/verify.ts:123

CAIP-2 of the chain the output is paid on.


destToken: string

Defined in: protocol-swap2-across/src/verify.ts:127

Output token contract; the zero address is the native coin.


optional maxFeeBps?: number

Defined in: protocol-swap2-across/src/verify.ts:137

Fee cap in bps of the input (default ACROSS_DEFAULT_MAX_FEE_BPS).


optional minAmountOut?: bigint

Defined in: protocol-swap2-across/src/verify.ts:135

The caller’s own floor on the output, base units.


optional nowMs?: number

Defined in: protocol-swap2-across/src/verify.ts:139

The clock (ms) deadlines are judged against; defaults to Date.now().


recipient: string

Defined in: protocol-swap2-across/src/verify.ts:133

Who receives the output.


sourceChain: string

Defined in: protocol-swap2-across/src/verify.ts:121

CAIP-2 of the chain the deposit is sent on.


sourceToken: string

Defined in: protocol-swap2-across/src/verify.ts:125

Input token contract; the zero address is the native coin.