Request a quote
API key generated at https://studio.aurora.dev
Flag indicating whether this is a dry run request.
If true, the response will NOT contain the following fields:
-
depositAddress -
timeWhenInactive -
deadline
trueHow to interpret amount (and refunds) when performing the swap:
-
EXACT_INPUT— requests the output amount for an exact input.-
If deposit is less than
amountIn, the deposit is refunded by deadline. -
If deposit is above than
amountIn, the swap is processed and the excess is refunded to refundTo address after swap is complete.
-
-
EXACT_OUTPUT— requests the input amount for an exact output.-
The quote response includes
minAmountInandmaxAmountIn. -
If the input is above
maxAmountIn, the swap is processed and the excess is refunded torefundToafter the swap is complete. -
If the input is below
minAmountIn, the deposit is refunded by deadline.
-
-
FLEX_INPUT— a flexible input amount that allows for partial deposits and variable amounts.-
slippageapplies both toamountOutandamountInand defines an acceptable range (minAmountInandminAmountOut). -
Any amount higher than
minAmountInis accepted and converted to the output asset as long asminAmountOutis met. -
amountIncan be less, as long as the 'slippage + 1%' constraint is met. If the total received by the deadline is below the lower bound, the deposit is refunded. -
If deposits exceed the upper bound, the swap is still processed.
-
EXACT_INPUTPossible values: Type of deposit address:
-
ORIGIN_CHAIN- deposit address on the origin chain. -
INTENTS- the account ID within NEAR Intents to which you should transfer assets.
ORIGIN_CHAINPossible values: What deposit address mode you will get in the response.
Most chains support only SIMPLE, and some (for example stellar) only MEMO:
-
SIMPLE- usual deposit with only a deposit address. -
MEMO- some chains require thememotogether withdepositAddressfor the swap to work.
SIMPLEPossible values: Time in milliseconds the user is willing to wait for a quote from the relay.
Use 0 to request the fastest available quote.
3000Unique client session identifier.
session_abc123Amount to swap as the base amount, in the smallest unit of the currency. It is interpreted as input or output based on swapType.
1000ID of the origin asset.
nep141:arb-0xaf88d065e77c8cc2239327c5edb3a432268e5831.omft.nearID of the destination asset.
nep141:sol-5ce3bf3a31af18be40ba30f721101b4341690186.omft.nearSlippage tolerance for the swap in basis points (1/100th of a percent), e.g. 100 for 1%.
100Address used for refunds.
0x2527D02599Ba641c19FEa793cD0F167589a0f10DType of refund address:
-
ORIGIN_CHAIN- assets are refunded to therefundToaddress on the origin chain. -
INTENTS- assets are refunded to therefundToIntents account.
ORIGIN_CHAINPossible values: Recipient address. The format must match recipientType.
13QkxhNMrTPxoCkRdYdJ65tFuwXPhL5gLS2Z5Nr6gjRKType of recipient address:
-
DESTINATION_CHAIN- assets are transferred to the chain ofdestinationAsset. -
INTENTS- assets are transferred to an account inside Intents.
DESTINATION_CHAINPossible values: EVM address of a transfer recipient in a virtual chain
"0xb4c2fbec9d610F9A3a9b843c47b1A8095ceC887C"EVM address of a refund recipient in a virtual chain
"0xb4c2fbec9d610F9A3a9b843c47b1A8095ceC887C"Quote successfully generated
Quote successfully generated
Timestamp in ISO format used to derive the deposit address for this quote.
2019-08-24T14:15:22Z1Click service signature confirming the quote for the specific deposit address.
<string>Unique identifier for request tracing and debugging.
550e8400-e29b-41d4-a716-446655440000Default Response
Application key is not assigned
Internal Server Error - Failed to get a quote service or missing deposit address
Last updated
