Default

Get routes for a token swap

get

One of amountIn or amountOut is required. Exact out calculation is not supported by some aggregators.

Path parameters
chainstring · enumRequired

Chain identifier

Possible values:
aggstring · enumRequired

Aggregator identifier

Possible values:
Query parameters
tokenInstringRequired

Input token address

tokenOutstringRequired

Output token address

amountInstringOptional

Input token amount

amountOutstringOptional

Output token amount

Responses
chevron-right
200

Successful response

application/json
get
/v2/aggregator/routes/{chain}/{agg}/quote

Get transaction data for a token swap

get
Path parameters
chainstring · enumRequired

Chain identifier

Possible values:
aggstring · enumRequired

Aggregator identifier

Possible values:
Query parameters
tokenInstringRequired

Input token address

tokenOutstringRequired

Output token address

amountInstringRequired

Input token amount

userAddressstringRequired

User's wallet address

slippageBpsinteger · max: 10000Required

Maximum slippage tolerance in basis points (1 bps = 0.01%)

feeBpsinteger · max: 10000Required

Fee in basis points (1 bps = 0.01%)

feeRecipientAddressstringOptional

Fee recipient's wallet address. Required if feeBps is not zero.

Responses
chevron-right
200

Successful response

application/json
get
/v2/aggregator/routes/{chain}/{agg}/swap

Health check

get
Responses
chevron-right
200

Service is healthy

No content

get
/health-check

No content

Last updated