Documentation Index
Fetch the complete documentation index at: https://mintlify.com/1inch/cross-chain-sdk/llms.txt
Use this file to discover all available pages before exploring further.
Overview
ThecreateOrder method prepares a cross-chain order from a quote. It returns a PreparedOrder object containing the order instance, order hash, and quote ID. The order must be created with enableEstimate=true in the quote.
Method Signature
Parameters
The quote object obtained from
getQuote(). Must have enableEstimate=true and contain a quoteId.Order creation parameters
The maker’s wallet address
Hash lock for the escrow mechanism
Array of secret hashes for order fulfillment. Single hash for single-fill orders, multiple hashes for multi-fill orders
Destination chain receiver address. Defaults to
walletAddress (maker address) if not provided. Required for Solana ordersCustom preset for order parameters. Uses recommended preset by default
Unique nonce for the wallet address. Can be serial or randomly generated
Permit signature (without the first 20 bytes of token address)
Source identifier for tracking
Whether to use Permit2 for approvals
Custom preset configuration
Returns
Example Usage
- EVM Order
- Solana Order
Error Handling
Notes
- The quote must be obtained with
enableEstimate: trueto contain a validquoteId - For Solana orders, the
receiverparameter is required - The order is not yet submitted to the relayer at this point - use
submitOrderorannounceOrderto submit - The returned order hash is in hex format for EVM chains and base58 format for Solana
- Secret hashes must match the hash lock configuration:
- Single-fill orders: 1 secret hash
- Multi-fill orders: Number of secrets must equal
hashLock.getPartsCount() + 1
Related Methods
- Submit Order - Submit the created order to the relayer
- Get Quote - Get a quote before creating an order
- Order Status - Check the status of a submitted order