1inch Swap API
 6.1 
OAS 3.0

Polygon Network

Using 1inch Swap API, you can find the best route to exchange assets and make the exchange.

Step by step:

  1. Lookup addresses of tokens you want to swap, for example ‘0xxx’ , ‘0xxxx’ for DAI -> 1INCH
  2. Check for allowance of 1inch router contract to spend source asset (/approve/allowance)
  3. If necessary, give approval for 1inch router to spend source token (/approve/transaction)
  4. Monitor the best exchange route using (/quote)
  5. When you ready use to perform swap (/swap)

Swap

Approve

Info