estimateFee - Ton

estimateFee. Calculates the estimated transaction fee for a specified operation on the TON blockchain, helping users understand the cost of their transactions.

estimateFee - ton [Value: 100CU]
Calculates the estimated transaction fee for a specified operation on the TON blockchain, helping users understand the cost of their transactions.
Use cases

Use cases

  • Estimate transaction fees on the TON network
  • Calculate costs for BOC submissions
  • Plan budgets for transactions
Constraints

Constraints

  • Requires valid transaction input
  • Depends on network conditions
  • Only estimates supported operations
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl --request POST \
     --url 'https://ton.drpc.org/rest/estimateFee' \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: t-66a730ccccfd17001c479705-2f597d14ad7543f289a03418' \
     --data '{
         "address": "0:abcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdefabcdef",
         "body": "te6cckEBAQEAAjz+9wAAMABBBIAgAAZL0AAdBGdZnYDAAUGdD59VAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAABAcAA=="
     }'
Copy
Response
200
{
    "status": "success",
    "fee": "0.0001", 
    "message": "Fee estimated successfully."
}

Copy

Request params

Parametersobject
object
addressstring
Identifier of the target TON account in any form.
bodystring

Response

200

Response params

object
statusstring
Indicates the status of the request.
feestring
The estimated fee for the transaction.
messagestring
A message indicating the result of the fee estimation.