Estimate Gas Price
This method will use 30
Compute Units.
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.
Responses
200Success
400Error
application/json
403Error
application/json
500Error
application/json
503Error
application/json
get
GET /v1/<YOUR_API_KEY_HERE>/v1/estimate_gas_price HTTP/1.1
Host: mainnet.aptos.validationcloud.io
Accept: */*
{
"deprioritized_gas_estimate": 1,
"gas_estimate": 1,
"prioritized_gas_estimate": 1
}
Last updated
Was this helpful?