v1

latestOpenAPI 3.0.02026-07-142115792.8 KB
IndicativeQuote

Get an indicative quote

Deprecated. Instead, use the /quote endpoint and specify the routingPreference parameter. with value of FASTEST. See the Token Trading Workflow page for more details.

This endpoint receives a fast indicative quote according to the provided details. The quote will not include any gas or fee information.

post/indicative_quote

Request body

type'EXACT_INPUT' | 'EXACT_OUTPUT' required

The handling of the amount field. EXACT_INPUT means the requester will send the specified amount of input tokens and get a quote with a variable quantity of output tokens. EXACT_OUTPUT means the requester will receive the specified amount of output tokens and get a quote with a variable quantity of input tokens.

amountstring required

The quantity of tokens denominated in the token's base units. (For example, for an ERC20 token one token is 1x10^18 base units. For one USDC token one token is 1x10^6 base units.) This value must be greater than 0.

tokenInChainId1 | 10 | 56 | 130 | 137 | 324 | 480 | 1868 | 8453 | 10143 | 42161 | 42220 | 43114 | 81457 | 7777777 | 1301 | 84532 | 11155111 | 143 | 196 required

The unique ID of the blockchain. For a list of supported chains see the FAQ.

tokenOutChainId1 | 10 | 56 | 130 | 137 | 324 | 480 | 1868 | 8453 | 10143 | 42161 | 42220 | 43114 | 81457 | 7777777 | 1301 | 84532 | 11155111 | 143 | 196 required

The unique ID of the blockchain. For a list of supported chains see the FAQ.

tokenInstring required

The token which will be sent, specified by its token address. For a list of supported tokens, see the FAQ.

tokenOutstring required

The token which will be received, specified by its token address. For a list of supported tokens, see the FAQ.

Response

Indicative quote request successful.

requestIdstring required

A unique ID for the request.

type'EXACT_INPUT' | 'EXACT_OUTPUT' required

The handling of the amount field. EXACT_INPUT means the requester will send the specified amount of input tokens and get a quote with a variable quantity of output tokens. EXACT_OUTPUT means the requester will receive the specified amount of output tokens and get a quote with a variable quantity of input tokens.