Skip to main content
POST
/
v2
/
gasless
/
estimate
/
{master_id}
cURL
curl --request POST \
  --url https://tonapi.io/v2/gasless/estimate/{master_id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "wallet_address": "<string>",
  "wallet_public_key": "<string>",
  "messages": [
    {
      "boc": "<string>"
    }
  ],
  "throw_error_if_not_enough_jettons": false,
  "return_emulation": false
}
'
{
  "protocol_name": "<string>",
  "relay_address": "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf",
  "commission": "1000000",
  "from": "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf",
  "valid_until": 1717397217,
  "messages": [
    {
      "address": "0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf",
      "amount": "<string>",
      "payload": "<string>",
      "stateInit": "<string>"
    }
  ]
}

Headers

Accept-Language
string
default:en
Example:

"ru-RU,ru;q=0.5"

Path Parameters

master_id
string<address>
required

jetton to pay commission

Example:

"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"

Body

application/json

bag-of-cells serialized to hex

wallet_address
string<address>
required
wallet_public_key
string
required
messages
object[]
required
throw_error_if_not_enough_jettons
boolean
default:false

TONAPI verifies that the account has enough jettons to pay the commission and make a transfer.

return_emulation
boolean
default:false

Response

payload to sign

protocol_name
string
required
relay_address
string<address>
required
Example:

"0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"

commission
string
required

Commission for the transaction. In nanocoins.

Example:

"1000000"

from
string<address>
required
Example:

"0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"

valid_until
integer<int64>
required
Example:

1717397217

messages
object[]
required
emulation
object

Result of emulating a wallet message on the current blockchain state: describes the expected on-chain consequences (trace, high-level AccountEvent, risk) for the signing wallet. For UI display only.