post https://ton-mainnet.core.chainstack.com/f2a2411bce1e54a2658f2710cd7969c3/api/v3/estimateFee
Estimates the fee for a transaction on the TON blockchain
Estimate Fee
The estimateFee
endpoint estimates the fee for a transaction on the TON blockchain. This endpoint allows you to calculate the expected fees before actually sending a transaction.
Get you own node endpoint today
Start for free and get your app to production levels immediately. No credit card required.
You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
address
(string, required) — The address of the smart contract.body
(string, required) — The body of the transaction in base64 format.ignore_chksig
(boolean, optional) — Whether to ignore the signature check. Default:false
.
Response
The response includes the estimated fees for both the source and destination of the transaction.
Source Fees
in_fwd_fee
(integer) — The incoming forward fee.storage_fee
(integer) — The storage fee.gas_fee
(integer) — The gas fee.fwd_fee
(integer) — The forward fee.
Destination Fees
in_fwd_fee
(integer) — The incoming forward fee.storage_fee
(integer) — The storage fee.gas_fee
(integer) — The gas fee.fwd_fee
(integer) — The forward fee.
Use case
The estimateFee
endpoint is useful for various applications that need to estimate transaction costs on the TON blockchain:
- Wallet applications can use this to show users the expected cost of a transaction before they send it.
- Smart contract developers can use this to estimate the cost of deploying or interacting with contracts.
- DApp developers can integrate this to provide users with accurate fee estimates for transactions.
- Automated trading systems can use this to factor in transaction costs when making trading decisions.
- Fee optimization tools can use this endpoint to suggest optimal transaction parameters.
Try the estimateFee
RPC method yourself
estimateFee
RPC method yourself