Skip to content
docs

RelayRequest

Defined in: protocol-swap2-relay/src/verify.ts:60

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

amount: bigint

Defined in: protocol-swap2-relay/src/verify.ts:70

Exact input, base units.


depositor: string

Defined in: protocol-swap2-relay/src/verify.ts:72

The account that signs the deposit: the depositor argument and the origin-chain refund recipient.


destChain: string

Defined in: protocol-swap2-relay/src/verify.ts:64

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


destToken: string

Defined in: protocol-swap2-relay/src/verify.ts:68

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


optional minAmountOut?: bigint

Defined in: protocol-swap2-relay/src/verify.ts:76

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


optional nowMs?: number

Defined in: protocol-swap2-relay/src/verify.ts:80

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


recipient: string

Defined in: protocol-swap2-relay/src/verify.ts:74

Who receives the output.


optional slippageBps?: number

Defined in: protocol-swap2-relay/src/verify.ts:78

The slippage the caller asked for: the order’s minimum may sit at most this far under its expected amount.


sourceChain: string

Defined in: protocol-swap2-relay/src/verify.ts:62

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


sourceToken: string

Defined in: protocol-swap2-relay/src/verify.ts:66

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