---
title: "Returns pre-built transactions for the given route. It is assumed that transactions will be signed and sent by the sender via wallet"
method: POST
path: "/v2/route/transactions"
tags: ["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

- ApiTransactionsRequest
  - `sender_address` string, required
  - `slippage` number, double — If the slippage is exceeded, the transaction will not be executed and intermediate tokens will be returned to the sender.
  - `dynamic_slippage` boolean — If set to true, slippage will be calculated dynamically.
  - `referral_name` string — May be set whilst building transactions from B2B partnership products
  - `custom_fee` ApiTransactionsCustomFee — If present, additional transaction for fees collection will be generated. Because of that, be careful with max_splits to not exceed wallet contract limits
    - `fixed_fee` string — Value in nanotons
    - `percentage_fee` integer — Value in 1/1000000: 1 is 0.0001%, 1000000 is 100%. If present, can not be less than 10000000 (0.01 TON)
    - `min_percentage_fee_fixed` string — Value in nanotons. No less than this value may be withdrawn as a percentage_fee. Must be set if percentage_fee is present. Can not be less than 10000000 (0.01 TON)
    - `max_percentage_fee_fixed` string — Value in nanotons. If set, no more than this value may be withdrawn as a percentage_fee. Taken into account only if percentage_fee is present
  - `mev_protection` boolean — Whether a MEV protection should be enabled
  - `paths` ApiRoutingStep[], required — Value of this field is a response from route building endpoint
    - `blockchain` string, required
    - `dex` string, required
    - `pool_address` string, required
    - `input_token` ApiToken, required
      - `address` ApiTokenAddress, required
        - `blockchain` string, required
        - `address` string, required
      - `metadata` ApiTokenMetadata, required
        - `name` string, required
        - `symbol` string, required
        - `decimals` integer, required
        - `image_url` string
        - `listed` boolean, required
        - `verification` 'whitelisted' | 'blacklisted' | 'community' | 'unknown', required
    - `output_token` ApiToken, required
      - `address` ApiTokenAddress, required
        - `blockchain` string, required
        - `address` string, required
      - `metadata` ApiTokenMetadata, required
        - `name` string, required
        - `symbol` string, required
        - `decimals` integer, required
        - `image_url` string
        - `listed` boolean, required
        - `verification` 'whitelisted' | 'blacklisted' | 'community' | 'unknown', required
    - `swap` ApiSwap, required
      - `result` 'fully_fulfilled' | 'partially_fulfilled' | 'unavailable', required — Result of the swap
      - `input_amount` number, double, required
      - `output_amount` number, double, required
      - `before_reserves` number[], required
      - `after_reserves` number[], required
      - `reason` string
      - `left_amount` number, double
    - `recommended_gas` number, double, required
    - `average_gas` number, double, required
    - `next` ApiRoutingStep[]

## Response `200`

transactions for the route

- ApiTransactionsResponse
  - `route_id` integer, required — Unique identifier of the route used for tracking.
  - `transactions` ApiSwapTransaction[], required
    - `address` string, required
    - `value` string, int128, required — Amount of nanotons to be sent. Can be passed to TonConnect transaction.
    - `cell` string, base64, required — Base64-encoded cell. Treated as a payload field in TonConnect transaction.
    - `stateInit` string, base64 — Base64-encoded stateInit cell. Used to deploy a contract
    - `send_mode` integer, required — Internal message send mode. More: https://docs.ton.org/develop/smart-contracts/messages#message-modes
    - `query_id` integer, required — Unique identifier of the query used for tracking swap.coffee transactions among others

## Other responses

- `default` — Some error during request processing

---

[API](https://skmtc.net/swap/apis/swap-coffee-api.md) · [All operations](https://skmtc.net/swap/apis/swap-coffee-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swap/swap-coffee-api/revisions/8f32977bfb50/schema)
