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.
Properties
Section titled “Properties”amount
Section titled “amount”amount:
bigint
Defined in: protocol-swap2-relay/src/verify.ts:70
Exact input, base units.
depositor
Section titled “depositor”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
Section titled “destChain”destChain:
string
Defined in: protocol-swap2-relay/src/verify.ts:64
CAIP-2 of the chain the output is paid on.
destToken
Section titled “destToken”destToken:
string
Defined in: protocol-swap2-relay/src/verify.ts:68
Output token contract; the zero address is the native coin.
minAmountOut?
Section titled “minAmountOut?”
optionalminAmountOut?:bigint
Defined in: protocol-swap2-relay/src/verify.ts:76
The caller’s own floor on the output, base units.
nowMs?
Section titled “nowMs?”
optionalnowMs?:number
Defined in: protocol-swap2-relay/src/verify.ts:80
The clock (ms) deadlines are judged against; defaults to Date.now().
recipient
Section titled “recipient”recipient:
string
Defined in: protocol-swap2-relay/src/verify.ts:74
Who receives the output.
slippageBps?
Section titled “slippageBps?”
optionalslippageBps?: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
Section titled “sourceChain”sourceChain:
string
Defined in: protocol-swap2-relay/src/verify.ts:62
CAIP-2 of the chain the deposit is sent on.
sourceToken
Section titled “sourceToken”sourceToken:
string
Defined in: protocol-swap2-relay/src/verify.ts:66
Input token contract; the zero address is the native coin.