aptos/src/provider/methods/transaction/estimate_gas_price library

Classes

AptosRequestEstimateGasPrice
Gives an estimate of the gas unit price required to get a transaction on chain in areasonable amount of time. The gas unit price is the amount that each transaction commits topay for each unit of gas consumed in executing the transaction. The estimate is based onrecent history: it gives the minimum gas that would have been required to get into recentblocks, for blocks that were full. (When blocks are not full, the estimate will match theminimum gas unit price.) The estimation is given in three values: de-prioritized (low), regular, and prioritized(aggressive). Using a more aggressive value increases the likelihood that the transactionwill make it into the next block; more aggressive values are computed with a larger historyand higher percentile statistics. More details are in AIP-34. aptos documation