Tonx Lab Wordmark
Estimate Fee Tools
Use your transaction and address to get accurate gas fee.
Info icon

Hints

  1. Please ensure the API key corresponds to the correct network.
  2. You can enter an address in various formats, including TON address (starting with UQ), base64, base64url, bounceable, non-bounceable, or hexadecimal.
  3. Please note that the fee estimation value is most accurate within a short period of time. To ensure you get the most accurate fee, it's recommended to use the fee estimation tools just before sending the sendBoc.

REQUEST

RESULTS

Click Try It! ↗️ to start a request and see the response here!

Frequently Asked Questions

The EstimateFee API is designed to ensure that the final broadcasted fee closely aligns with the estimated fee.

Fee estimates can vary due to several factors:

  1. Transaction Complexity: More complex transactions, especially those involving smart contracts, require higher fees.
  2. Time of Submission:Fees can change based on the blockchain’s state at the time the transaction is submitted.
  3. Validator Activity:The level of gas price unit can be changed through voting procedure between validators.

In summary, estimated fees fluctuate based on real-time network conditions on the TON blockchain. Even for the same BOC, submitting under different conditions may result in different fees, similar to how Ethereum transactions can vary in cost each time.

To estimate the gas fee for an actual transaction, you'll need to provide the following information:

  1. API Key: You will need a TONX API key to use this tool.For checking address on the mainnet: Ensure that you are using a mainnet API key.How to apply for a TONX API Key: Register for a TONX API account at https://auth.tonxapi.com. Once registered, you can generate the appropriate environment key (mainnet or testnet) that you would like to use. It’s completely free.
  2. TON Address: The source address to which the transaction will be sent.
  3. BOC: The data in raw BOC format that you want to send to the TON blockchain.

By providing this information, the API will simulate the transaction execution process and return an gas fee estimation range based on current blockchain conditions.

  1. BOC usually has an expiration time

    Normally, BOC sent to the TON blockchain has a timeout field inside the encoded string. Automatic expiring BOC improves the safety level of the wallet design. Therefore, you cannot make a meaningful fee estimation to an expired BOC.
  2. Fee estimation range drifts during the time
    1. Because the final transaction fee is influenced by the time of submitting BOC, it will be gradually lifting reflecting the duration of an address that is not activating.
    2. The validator voting results will change the gas price level which in turn impact the final transaction fee.
  3. Fee estimation deviates from the real value of transaction fee

    According to the question above, any fee estimation is accurate for a short time. During the time passed, the level of accuracy will be affected because of the TON blockchain conditions.