GET
/
v1
/
route
/
result
curl --request GET \
  --url https://backend.swap.coffee/v1/route/result
[
  {
    "status": "pending",
    "steps": [
      {
        "status": "pending",
        "input": {
          "token_blockchain": "ton",
          "token_address": "<string>",
          "amount": 123
        },
        "output": {
          "token_blockchain": "ton",
          "token_address": "<string>",
          "amount": 123
        }
      }
    ],
    "input": {
      "token_blockchain": "ton",
      "token_address": "<string>",
      "amount": 123
    },
    "output": {
      "token_blockchain": "ton",
      "token_address": "<string>",
      "amount": 123
    }
  }
]

Authorizations

X-Api-Key
string
header
required

Query Parameters

query_id
integer
required

Actually it's route_id, but saved old naming for back-compatibility

Response

200
application/json
transactions for the route
status
enum<string>
required
Available options:
pending,
partially_complete,
succeeded,
failed,
timed_out
steps
object[]
required
input
object
output
object