Skip to main content
POST
/
api
/
v2
/
estimateFee
Estimate Fee
curl --request POST \
  --url https://toncenter.com/api/v2/estimateFee \
  --header 'Content-Type: application/json' \
  --data '
{
  "address": "<string>",
  "body": "<string>",
  "init_code": "<string>",
  "init_data": "<string>",
  "ignore_chksig": true
}
'
{
  "ok": true,
  "result": {
    "@type": "query.fees",
    "source_fees": {
      "@type": "fees",
      "in_fwd_fee": 123,
      "storage_fee": 123,
      "gas_fee": 123,
      "fwd_fee": 123
    },
    "destination_fees": [
      {
        "@type": "fees",
        "in_fwd_fee": 123,
        "storage_fee": 123,
        "gas_fee": 123,
        "fwd_fee": 123
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://toncenter.ness.su/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
address
string
required
body
string
required
init_code
string
init_data
string
ignore_chksig
boolean
default:true

Response

OK

ok
boolean
required
Example:

true

result
QueryFees · object
required