API Reference

Returns a preview for a swap including routing. Only one of the two optional parameters (input_amount, output_amount) should be specified, and the other will be calculated and returned based on this value.

Preview for a swap including routing

Log in to see full request history
Query Params
string
required

The token address of the input token.

string

The amount of the input token. If left empty, this will be the calculated value.

string
required

The token address of the output token.

string

The amount of the output token. If left empty, this will be the calculated value.

Responses

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json