POST
/
v2
/
stake
/
ton
/
transaction
curl --request POST \
  --url https://backend.swap.coffee/v2/stake/ton/transaction \
  --header 'Content-Type: application/json' \
  --data '{
  "referral_name": "tonkeeper",
  "sender_address": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
  "amount": 0.05,
  "token_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH"
}'
{
  "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez",
  "value": "<string>"
}

Authorizations

X-Api-Key
string
header
required

Body

application/json
sender_address
string
required
amount
number
required
token_address
string
required
referral_name
string

Response

200
application/json
transaction for stake
payload_cell
file
required

Base64-encoded cell. Treated as a payload field in TonConnect transaction.

address
string
required
value
string
required

Amount of nanotons to be sent. Can be passed to TonConnect transaction.

state_init
file

Base64-encoded cell. Treated as a stateInit field in TonConnect transaction.