Introduction
This guide shows how to create and submit a Limit Order v4 using the @1inch/limit-order-sdk on Ethereum.
Before You Start
- You must have a valid 1inch API Key. You can get one from the 1inch Business.
- Your wallet must have:
- USDC on Ethereum (for the maker asset)
- ETH for the token approval transaction
Integration Pattern
- Approve Tokens - Grant the Limit Order Protocol contract permission to spend your tokens
- Initialize SDK - Create an SDK instance with your API key and network
- Configure Traits - Set expiration and nonce via
MakerTraits
- Create Order - Build a properly formatted order with the SDK
- Sign Order - Sign with EIP-712 typed data (no gas required)
- Submit Order - Send the signed order to the 1inch Orderbook API
Interactive Code Example
Explore the minimal quick-start implementation (~90 lines):
For a more comprehensive example with provider-agnostic design and balance checks, see src/create-limit-order.ts in the same project.