Features
- Route API - Get optimal swap routes across DEXs
- Build API - Get transaction calldata for execution
- Multi-chain - Supports 15+ EVM chains
Installation
[]
= "0.1"
= { = "1", = ["full"] }
Quick Start
use ;
async
Getting Transaction Data
use ;
// First get route data (routeSummary is kept as raw JSON)
let route_data = client.get_route_data.await?;
// Then build for execution - the summary must be sent back unmodified
let build_request = BuildRouteRequest ;
let tx_data = client.build_route.await?;
println!;
println!;
Supported Chains
Ethereum, BSC, Polygon, Arbitrum, Optimism, Avalanche, Base, Fantom, Linea, Scroll, zkSync, Blast, Mantle, Polygon zkEVM
Terms of Service
This is an unofficial client. By using this library, you agree to comply with KyberSwap Terms of Use.
Disclaimer
This crate is not affiliated with or endorsed by Kyber Network.
License
MIT