Setup
Steps
1
Quote
2
Approve (if needed)
3
Trade
4
Confirm
What can go wrong
NO_ROUTE_FOUND, pair is too thin or not yet supported. Try a different amount or token.SLIPPAGE_TOO_TIGHT, bump slippage from 1 to 2.- Approval fails, make sure your wallet has gas (ETH on Arbitrum).
Going further
- Cross-chain bridge, same flow with
toChain. - Approvals reference, Permit2 vs EIP-2612 vs AutoPermit.
- Trade SDK, every method, every option.