GET_NEAR_SWAP_SIMPLE_QUOTE
Get a simple quote for a NEAR intent swap across chains and assets. Use this dry run to check swap rates and fees without providing recipient addresses.
Instructions
[STEP 1] Get a simple quote for a NEAR intent swap between different chains and assets. This is a dry run that doesn't require any addresses - perfect for users who want to check swap rates and fees before committing to a swap. Use this when users want to explore swap options without providing recipient addresses. NOTE: If users provide simple token names (e.g., 'ETH', 'USDC'), first use GET_NEAR_SWAP_TOKENS to discover the exact token IDs required for this API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| originAsset | Yes | ID of the origin asset (e.g. 'nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.near') | |
| destinationAsset | Yes | ID of the destination asset (e.g. 'nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.near') | |
| amount | Yes | Amount to swap as the base amount, denoted in the smallest unit of the specified currency (e.g., wei for ETH) | |
| swapType | No | (Optional, defaults to EXACT_INPUT) Whether to use the amount as input or output for the swap calculation | EXACT_INPUT |
| slippageTolerance | No | (Optional, defaults to 100) Slippage tolerance in basis points (100 = 1%) | |
| quoteWaitingTimeMs | No | (Optional, defaults to 3000) Time in milliseconds to wait for quote from relay |