estimate gas price - Movement

Returns the network's current gas unit price estimate, with deprioritized and prioritized tiers, so a client can set a competitive gas_unit_price.

Endpoint

httpGET /v1/estimate_gas_price

Example

bashexport MOVEMENT_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${MOVEMENT_REST}v1/estimate_gas_price"

Response

json{
    "deprioritized_gas_estimate": 90,
    "gas_estimate": 100,
    "prioritized_gas_estimate": 150
}

Response Fields

FieldTypeDescription
gas_estimateintegerRecommended gas unit price
prioritized_gas_estimateintegerHigher price for faster inclusion
deprioritized_gas_estimateintegerLower price for cheaper, slower inclusion

Use Cases

  • Fee Estimation: Set a competitive gas unit price
  • Cost Control: Choose a priority tier

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA path, query, or body parameter was invalid
404 / Not foundNot foundThe account, block, transaction, or resource does not exist
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect