DeDust Hub

Generate message payload to swap

POST
/router/swap

Builds swap messages in TON Connect format based on the swap data from /quote response.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://mainnet.api.dedust.io/v4/router/swap" \  -H "Content-Type: application/json" \  -d '{    "sender_address": "string",    "swap_data": {}  }'
{
  "query_id": 0,
  "transactions": [
    {
      "address": "string",
      "amount": "string",
      "payload": "string"
    }
  ]
}
Empty
Empty