Package Installation
Install the SDK using your preferred package manager:Peer Dependencies
The SDK has the following peer dependencies:axios>= 1.0.0 (optional)assert^2.0.0 (optional)
ethers6.16.0 (included as a direct dependency)@1inch/limit-order-sdk5.2.2 (included)
Supported Networks
The Fusion SDK supports the following blockchain networks:Ethereum
Network ID:
1BNB Chain
Network ID:
56Polygon
Network ID:
137Arbitrum
Network ID:
42161Optimism
Network ID:
10Avalanche
Network ID:
43114zkSync
Network ID:
324Base
Network ID:
8453Basic Setup
Once installed, import the SDK and initialize it with your configuration:Configuration Parameters
TheFusionSDK constructor accepts a configuration object with the following parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The Fusion API endpoint URL |
network | NetworkEnum | Yes | The blockchain network to use |
authKey | string | No | Your 1inch Dev Portal API token for authentication |
blockchainProvider | BlockchainProviderConnector | No | Provider for blockchain interactions (required for creating orders) |
httpProvider | HttpProviderConnector | No | Custom HTTP provider (defaults to axios) |
Get your API token from the 1inch Developer Portal to access the Fusion API.
Next Steps
Quickstart
Create your first swap with Fusion Mode
SDK Reference
Explore all SDK methods and types