1
Check the allowance (ERC-20 input only)
The sending wallet must allow
swap.spender from the response to spend at least amountIn. Read it from each response; do not hardcode it.2
Quote with a transaction
GET /quote with recipient, after any approval so the quote is fresh.3
Show the terms
swap.netOut is the expected output after fees, swap.minOut the minimum received.4
Sign and send tx
Send
to, data and value exactly as returned, on tx.chainId. Or let Route send it: submit and track.5
Wait for the receipt
Success emits
Settled from the Route contract. A revert moves no tokens.Payer, recipient, native token
- The wallet that sends
txpays the input. Route’s contract pulls only from the sender. recipientreceives the output: the sender or any address except the zero address.- The native token is
0x0000000000000000000000000000000000000000. Native input needs no approval andtx.valueequalsamountIn. Native output arrives as the native token. - Legs in
swapsshow the wrapped native token (WETH0x0bd7d308f8e1639fab988df18a8011f41eacad73on Robinhood Chain). That is expected.
Approvals
Approve the exactamountIn, or more if your product supports standing approvals. Route’s contract uses only the order’s amount
and clears approvals it grants to pools.
Permit2 instead of an approval (Robinhood Chain)
With a partner key, addpermit2=1 (ERC-20 input, with recipient). swap.spender is then the
Permit2 contract: the wallet approves it once per token, then signs a Permit2 transfer for each swap. The response
carries permit2.typedData to sign, and permit2.signatureOffset and permit2.signatureLength (65): write the 65 signature bytes
into tx.data at that byte offset (counted after 0x), then send.
Slippage, minimum and deadline
The quote is exact at
block. A swap sent later may get less than swap.netOut, never less than swap.minOut.
Quotes have no ID or server-side expiry. Request a new one right before the user signs, and again if they wait more than a few
seconds, or keep one fresh with a live stream.
Reverts
Nothing is transferred on a revert.Gas
gas is the router’s estimate for the swaps. swap.executorGas is what the transaction used through Route’s contract at the
quote block. Prefer eth_estimateGas from the sending wallet, or executorGas plus a margin.