OpenAPI 3.0.32026-08-07129194194.6 KB

fd1067547679

Routing

Returns pre-built transactions for the given route. It is assumed that transactions will be signed and sent by the sender via wallet

post/v2/route/transactions

Request body

sender_addressstring required
slippagenumber double

If the slippage is exceeded, the transaction will not be executed and intermediate tokens will be returned to the sender.

dynamic_slippageboolean

If set to true, slippage will be calculated dynamically.

referral_namestring

May be set whilst building transactions from B2B partnership products

mev_protectionboolean

Whether a MEV protection should be enabled

Example request

{
  "sender_address": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
  "slippage": 0.05,
  "dynamic_slippage": true,
  "referral_name": "tonkeeper",
  "mev_protection": true,
  "paths": [
    {
      "blockchain": "ton",
      "dex": "stonfi",
      "input_token": {
        "address": {
          "blockchain": "ton",
          "address": "native"
        },
        "metadata": {
          "name": "ARBUZ",
          "symbol": "ARBUZ"
        }
      },
      "output_token": {
        "address": {
          "blockchain": "ton",
          "address": "native"
        },
        "metadata": {
          "name": "ARBUZ",
          "symbol": "ARBUZ"
        }
      }
    }
  ]
}

Response

transactions for the route

route_idinteger required

Unique identifier of the route used for tracking.

Example response

{
  "transactions": [
    {
      "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez"
    }
  ]
}