ABI-encodes (tokenIn, tokenOut, timestamp, fee, originRate, userAddress),
Keccak256-hashes the payload, and signs it with secp256k1.
The recovery ID is adjusted from [0,1] to [27,28] per the Ethereum Yellow Paper.
The response contains ABI-encoded verification data (fee, originRate, userAddress, signature)
ready for on-chain submission.
verificationData and timestamp. Both values must be passed directly into the swap() function — if either is modified or expired, the transaction will revert.
| Parameter | Description |
|---|---|
tokenIn | Input token address |
amountIn | Amount of input token (in token decimals) |
tokenOut | Output token address |
minOutAmount | Minimum acceptable output — set this to protect against slippage |
timestamp | Returned by this API — pass through unchanged |
verificationData | Returned by this API — pass through unchanged |
fee field uses 0.1 bps resolution:
| Value | Rate |
|---|---|
1 | 0.1 bps (0.001%) |
10 | 1 bps (0.01%) |
30 | 3 bps (0.03%) |
100 | 10 bps (0.10%) |
amountOut) and settled monthly in a mutually agreed currency.EVM hex address of the input token (checksummed or lowercase)
"0x4200000000000000000000000000000000000006"
EVM hex address of the output token (checksummed or lowercase)
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Fee tier as a decimal string (e.g. "3000" = 0.3%)
"3000"
EVM hex address of the user submitting the swap
"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"
Quote signed successfully