The 1inch SDKs are official TypeScript libraries for building, integrating, and extending swap functionality across networks and execution models. They wrap the low-level work — order building, EIP-712 signing, submission, and contract interaction — so you ship faster than calling the REST APIs directly.
All SDKs are open source, published on npm under the @1inch scope, and share the same API key authentication.
Choose your SDK
| SDK | Use it for | Chains |
|---|---|---|
| Cross-Chain SDK | Gasless cross-chain swaps (Fusion+) | EVM ↔ EVM |
| Fusion SDK | Intent-based, gasless same-chain swaps (Fusion) | EVM |
| Solana Fusion SDK | Intent-based swaps on Solana | Solana |
| Limit Order SDK | Create, sign, and submit limit orders | EVM |
| Utilities | Solidity helpers and protocol SDKs | EVM / Solana |
Install
Every SDK installs from npm and works in Node.js and modern bundlers:
Bash
12
npm install @1inch/cross-chain-sdk
# or: @1inch/fusion-sdk, @1inch/solana-fusion-sdk, @1inch/limit-order-sdk
When to use an SDK vs the REST API
- Use an SDK when you build swaps or orders in TypeScript and want order construction, signing, and submission handled for you.
- Use the REST APIs directly for backends in other languages, or when you need full control over each request.
- Use the MCP server to let an AI coding assistant build and run these flows for you.
AI & automation
For AI agents and LLM tools, a machine-readable index of all APIs and SDKs is available at /llms.txt, and the 1inch MCP server can retrieve full SDK examples on demand.