v18

latestOpenAPI 3.1.0raw.githubusercontent.com2026-04-1750147643.4 KB
Swap

Get swap routes for a denom

get/api/v1/swap/routes

Query parameters

contract_addressstring required

Swap contract address

Swap contract address

source_denomstring required

Source asset denom to fetch target routes for

Note: This is a normal injective asset denom, and not an AssetSpec ID.

E.g.

  • inj is a valid value for source_denom.
  • native;inj is not a valid value for source_denom.

Source asset denom to fetch target routes for

Note: This is a normal injective asset denom, and not an AssetSpec ID.

E.g.

  • inj is a valid value for source_denom.
  • native;inj is not a valid value for source_denom.

Response

Success response

{"stackTrail":"components:schemas:SwapRouteTargetSetObjResponse:properties:error","oasType":"schema","type":"unknown","description":"Error data. Guaranteed `null` for successful response."}
statusinteger required

HTTP status. Successful responses are guaranteed to be < 400. Conversely, error responses are guaranteed to be >= 400.

status_textstring required

HTTP status text