Overview
This page documents the main types exported by the Fusion SDK that are used across various SDK methods.SDK Configuration
QuoteParams
Parameters for requesting a quote from the Fusion API.Source token contract address
Destination token contract address
Amount of source token to swap (in token’s smallest unit)
Maker’s wallet address
Enable amount estimation
Permit signature for gasless approval
Fee configuration for integrators
Integration source identifier
Use Permit2 for approval
Slippage tolerance in percent (1-50). Example: 1 for 1%
OrderParams
Parameters for creating a Fusion order.Source token contract address
Destination token contract address
Amount of source token to swap (in token’s smallest unit)
Maker’s wallet address
Permit signature without the first 20 bytes of token address
Address to receive the destination tokens. Defaults to walletAddress
Auction speed preset. Defaults to recommended preset from quote
Unique nonce for the wallet address. Can be serial or randomly generated using
randBigIntIntegration source identifier
Use Permit2 for approval
Custom auction parameters
Order expiration delay after auction ends. Default: 12 seconds
Allow order to be partially filled. Default: true
Allow order to be filled multiple times. Default: true
Fee configuration for integrators
Slippage tolerance in percent (1-50)
Fee Types
IntegratorFeeRequest
Integrator fee parameters for SDK requests (used ingetQuote() and placeOrder()).
Address which will receive the integrator’s portion of the fee
Fee amount in basis points (1% = 100 bps)
IntegratorFeeResponse
Integrator fee parameters from API responses. Contains authoritative values calculated by the backend.Address which will receive
share of value fee. The remaining portion goes to the protocolTotal fee amount in basis points
Percentage of the fee that the integrator receives (rest goes to protocol)
Enums
PresetEnum
Auction speed presets.Fast auction (shorter duration, higher initial premium)
Medium-speed auction (balanced duration and premium)
Slow auction (longer duration, lower initial premium)
Custom auction parameters
OrderStatus
Possible order statuses.Order is active and waiting to be filled
Order has been completely filled
Order has been partially filled
Order has expired
Order has been cancelled
Order predicate evaluation returned false
Insufficient balance or allowance
Permit signature is invalid
Order signature is invalid
NetworkEnum
Supported blockchain networks.Core Types
Address
Wrapped Ethereum address type from@1inch/limit-order-sdk.
Static property: 0x0000000000000000000000000000000000000000
MakerTraits
Maker traits for limit orders. See @1inch/limit-order-sdk documentation.Bps
Basis points type (1% = 100 bps).Order Types
OrderInfo
Signed order information ready for submission.The limit order structure
Order signature
Quote identifier from the API
Order hash
Order extension data
PreparedOrder
Prepared order before signing.The Fusion order object
Order hash
Quote identifier from the API
Native order factory address (for native token swaps)
OrderStatusResponse
Detailed order status information from the API.Current order status
The order structure
Order extension data
Auction points defining the rate curve
Cancellation transaction hash if cancelled
Array of fill events
Order creation timestamp
Auction start date as Unix timestamp
Auction duration in seconds
Initial rate bump value
Whether the order involves native currency
Source token price in USD
Destination token price in USD
Fill
Information about a fill event.Transaction hash of the fill
Amount of maker token filled
Amount of taker token filled at auction rate
Taker fee amount if applicable
Custom Preset
CustomPreset
Custom auction parameters for advanced users.Duration of the auction in seconds
Starting amount for the auction
Ending amount for the auction
Custom auction points defining the rate curve
CustomPresetPoint
Token amount at this point
Delay in seconds relative to previous point