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
ThegetQuote() method retrieves a quote for a cross-chain swap, including estimated pricing, execution presets, and auction parameters.
Method Signature
Parameters
Quote request parameters
Returns
Quote object containing pricing and execution detailsKey properties:
srcChainId- Source chain IDdstChainId- Destination chain IDsrcTokenAmount- Source token amountdstMinTokenAmount- Minimum destination token amountdstTokenAmount- Expected destination token amountpresets- Available execution presets (fast, medium, slow)recommendedPreset- Recommended preset for this swapquoteId- Quote ID for order creation (only ifenableEstimate: true)integratorFee- Integrator fee details (if configured)resolverFee- Resolver fee details
Examples
Basic Quote
Quote for Order Creation
Quote with Integrator Fee
Native Asset Quote
Notes
Set
enableEstimate: true and provide walletAddress when you intend to create an order. This generates a quoteId required for order submission.The
recommendedPreset field suggests the best execution preset based on market conditions. You can override this when creating the order.Related Methods
- getQuoteWithCustomPreset - Get quote with custom execution parameters
- createOrder - Create an order from a quote
- Quote Response - Detailed quote response structure