GET
/
api
/
v0
/
swap
/
{tokenPair}
Swap token
curl --request GET \
  --url https://jupiter.dial.to/api/v0/swap/{tokenPair}
{
  "icon": "<string>",
  "label": "<string>",
  "title": "<string>",
  "description": "<string>",
  "disabled": true,
  "error": {
    "message": "<string>"
  },
  "links": {
    "actions": [
      {
        "type": "<string>",
        "label": "<string>",
        "href": "<string>",
        "parameters": [
          {
            "name": "<string>",
            "label": "<string>"
          }
        ]
      }
    ]
  }
}

Path Parameters

tokenPair
string
default:SOL-Bonk
required

Token pair in format input-output. Input and output are token symbols or addresses.

Example:

"SOL-Bonk"

Response

200
application/json

Successful response with swap action details

The response is of type object.