Polygon Network
Using 1inch Swap API, you can find the best route to exchange assets and make the exchange.
Step by step:
- Lookup addresses of tokens you want to swap, for example ‘0xxx’ , ‘0xxxx’ for DAI -> 1INCH
- Check for allowance of 1inch router contract to spend source asset (/approve/allowance)
- If necessary, give approval for 1inch router to spend source token (/approve/transaction)
- Monitor the best exchange route using (/quote)
- When you ready use to perform swap (/swap)