Estimate gas price
Currently, the gas estimation is handled by taking the median of the last 100,000 transactions If a user wants to prioritize their transaction and is willing to pay, they can pay more than the gas price. If they're willing to wait longer, they can pay less. Note that the gas price moves with the fee market, and should only increase when demand outweighs supply.
If there have been no transactions in the last 100,000 transactions, the price will be 1.
Current block height of the chain
Chain ID of the current chain
Current epoch of the chain
Oldest non-pruned ledger version of the chain
Current timestamp of the chain
Current ledger version of the chain
Oldest non-pruned block height of the chain
Struct holding the outputs of the estimate gas API
The deprioritized estimate for the gas unit price
gas_estimate integer required
The current estimate for the gas unit price
The prioritized estimate for the gas unit price
curl -X GET -H 'Content-Type: application/json' https://aptos.blockpi.network/aptos/v1/your_api_key/v1/estimate_gas_price