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>"
}
]
}Estimates the cost of the given messages and returns a payload to sign
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>"
}
]
}"ru-RU,ru;q=0.5"
jetton to pay commission
"0:97264395BD65A255A429B11326C84128B7D70FFED7949ABAE3036D506BA38621"
bag-of-cells serialized to hex
Show child attributes
TONAPI verifies that the account has enough jettons to pay the commission and make a transfer.
payload to sign
"0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
Commission for the transaction. In nanocoins.
"1000000"
"0:da6b1b6663a0e4d18cc8574ccd9db5296e367dd9324706f3bbd9eb1cd2caf0bf"
1717397217
Show child attributes
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.
Show child attributes
Was this page helpful?