POSTEstimate fee

TON Mainnethttps://ton-mainnet.nodit.io/api/v3/estimateFee
CU60

Estimate the fees required to process the query. The body, init_code, and init_data fields accept serialized, base64-encoded values.

Request Body
addressstring

Address of the account that receives the message, in any form.

bodystring

Message body in BoC format, base64 encoded.

ignore_chksigboolean

Set to true to skip signature verification during fee estimation; otherwise false. Useful when a real signature is not yet available.

init_codestring

Contract code for deployment messages, in BoC format, base64 encoded. Omit for regular transfers.

init_datastring

Initial contract storage for deployment messages, in BoC format, base64 encoded. Omit for regular transfers.

Responses
fwd_feeinteger

Fee for forwarding outbound messages created by this transaction, in nanograms.

gas_feeinteger

Computation gas fee for executing contract code, in nanograms.

in_fwd_feeinteger

Fee for importing the inbound message, in nanograms.

storage_feeinteger

Storage fee charged for keeping the contract state on-chain, in nanograms.

fwd_feeinteger

Fee for forwarding outbound messages created by this transaction, in nanograms.

gas_feeinteger

Computation gas fee for executing contract code, in nanograms.

in_fwd_feeinteger

Fee for importing the inbound message, in nanograms.

storage_feeinteger

Storage fee charged for keeping the contract state on-chain, in nanograms.

X-API-KEY
Request
cURL
curl -X POST "https://ton-mainnet.nodit.io/api/v3/estimateFee" \
  -H "X-API-KEY: {YOUR_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "address": "EQC5QeYg31ggWlkLDW6-kZxmubzqf8_TT3VjPSIbf6QwqFtN",
    "body": "te6cckEBAQEAAgAAAEysuc0=",
    "ignore_chksig": true
  }'
Response
Example · 200
{
  "source_fees": {
    "in_fwd_fee": 66667,
    "storage_fee": 8,
    "gas_fee": 0,
    "fwd_fee": 0
  },
  "destination_fees": []
}