Overview
1inch is one of the most popular DEX aggregators, offering optimal swap routes across hundreds of liquidity sources on multiple chains.
Features
- Multi-chain support (Ethereum, BSC, Polygon, Arbitrum, Optimism, Base, etc.)
- Advanced Pathfinder algorithm for optimal routing
- Type-safe request/response handling
- Automatic rate limiting awareness
- Token approval helpers
Authentication
The 1inch API requires an API key. Get yours at portal.1inch.dev.
Rate Limits
- Free tier: 1 request per second, 100,000 calls per month
- Higher tiers available for production use
Quick Start
use ;
async
Installation
[]
= "0.1"
= { = "1", = ["full"] }
Terms of Service
This is an unofficial client. By using this library, you agree to comply with 1inch Terms of Use.
Disclaimer
This crate is not affiliated with or endorsed by 1inch Network.
License
MIT