Gas calculation

Gas price and Gas limit calculation method

Before every transaction is sent to the blockchain, the gas is estimated. This estimated gas amount will be used for the actual transaction, so you can just set a high gas limit.

The best way to estimate the cost of gas for a transaction. Find the transaction of the protocol you need in the explorer.

Gas fee = Gas Unit Price * Max Gas Limit

In the normal state of the network, the Gas Unit Price is almost always equal to 100 Octa.

100 Octa = 0.000001 APT

As a result, we get approx Gas params for transaction:

Gas Unit Price = 100
Max Gas Limit = 388

Last updated