v3

latestOpenAPI 3.0.32026-07-21128192192.7 KB
Routing

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

post/v2/stake/ton/transaction

Request body

referral_namestring
sender_addressstring required
amountnumber double required
token_addressstring required

Example request

{
  "referral_name": "tonkeeper",
  "sender_address": "UQCNTO0Nh0Z7QNyRW1BLWfk08f2dAOw4izrx9sO6OUPg4DoV",
  "amount": 0.05,
  "token_address": "EQDY6PMeMbQSz7dltNN4RRTIxyuBJX4dQESOy8cWR2tUgBxH"
}

Response

transaction for stake

payload_cellstring base64 required

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

addressstring required
valuestring int128 required

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

state_initstring base64

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

Example response

{
  "address": "EQCM3B12QK1e4yZSf8GtBRT0aLMNyEsBc_DhVfRRtOEffLez"
}