curl --request POST \
--url https://backend.swap.coffee/v2/route/transactions \
--header 'Content-Type: application/json' \
--data '{
"sender_address": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
"slippage": 0.05,
"dynamic_slippage": true,
"referral_name": "tonkeeper",
"custom_fee": {
"fixed_fee": "<string>",
"percentage_fee": 123,
"min_percentage_fee_fixed": "<string>",
"max_percentage_fee_fixed": "<string>"
},
"mev_protection": true,
"paths": [
{
"blockchain": "ton",
"dex": "stonfi",
"pool_address": "<string>",
"input_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"image_url": "<string>",
"listed": true,
"verification": "whitelisted"
}
},
"output_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"image_url": "<string>",
"listed": true,
"verification": "whitelisted"
}
},
"swap": {
"result": "fully_fulfilled",
"input_amount": 123,
"output_amount": 123,
"before_reserves": [
123
],
"after_reserves": [
123
],
"reason": "<string>",
"left_amount": 123
},
"recommended_gas": 123,
"average_gas": 123,
"next": [
{}
]
}
]
}'
{
"route_id": 123,
"transactions": [
{
"address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
"value": "<string>",
"send_mode": 123,
"query_id": 123
}
]
}
curl --request POST \
--url https://backend.swap.coffee/v2/route/transactions \
--header 'Content-Type: application/json' \
--data '{
"sender_address": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
"slippage": 0.05,
"dynamic_slippage": true,
"referral_name": "tonkeeper",
"custom_fee": {
"fixed_fee": "<string>",
"percentage_fee": 123,
"min_percentage_fee_fixed": "<string>",
"max_percentage_fee_fixed": "<string>"
},
"mev_protection": true,
"paths": [
{
"blockchain": "ton",
"dex": "stonfi",
"pool_address": "<string>",
"input_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"image_url": "<string>",
"listed": true,
"verification": "whitelisted"
}
},
"output_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"image_url": "<string>",
"listed": true,
"verification": "whitelisted"
}
},
"swap": {
"result": "fully_fulfilled",
"input_amount": 123,
"output_amount": 123,
"before_reserves": [
123
],
"after_reserves": [
123
],
"reason": "<string>",
"left_amount": 123
},
"recommended_gas": 123,
"average_gas": 123,
"next": [
{}
]
}
]
}'
{
"route_id": 123,
"transactions": [
{
"address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
"value": "<string>",
"send_mode": 123,
"query_id": 123
}
]
}
transactions for the route
The response is of type object
.