Dive into the 1Inch Swap API
summary
API shows best routes and returns exact numbers for swaps including a full quote response and executable transaction fields for signing such as to, data, value, gasPrice and estimated gas. Use token addresses and amount in wei, set parts and complexity (0–5) to split across paths, restrict protocols from the 43 supported, add a custom fee percent, set receiver or referrer, toggle estimate, enable partial fill and use CHI to cut gas up to 43 percent. Swagger and GitBook docs provide examples and endpoints.
AI-written summary · about








