The 1inch Fusion SDK is the official TypeScript library for intent-based, gasless swaps on EVM chains. Instead of submitting a transaction yourself, you build and sign a Fusion order; 1inch resolvers compete to fill it at the best rate and cover the gas. The SDK wraps order construction, EIP-712 signing, and submission.
- Repository: github.com/1inch/fusion-sdk
- Example: fusion-resolver-example
- Language: TypeScript
- Best for: gasless, MEV-protected same-chain swaps in wallets and dApps.
Install
Bash
1
npm install @1inch/fusion-sdk
How it fits
The SDK targets the Intent Swap (Fusion) API. For Solana intent swaps use the Solana Fusion SDK; for swaps that span two chains use the Cross-Chain SDK.
Related
- Intent Swap (Fusion) docs
- Swap API overview
- Retrieve a full working example through the 1inch MCP server