Skip to main content

Gas Price Oracle

Gnosisscan Endpoint

Gnosisscan has a gas tracker page and an API endpoint to query the value.

Gnosisscan endpoint - Gnosis Mainnet
https://api.gnosisscan.io/api?module=proxy&action=eth_gasPrice

Check the Gnosisscan APIs documentation for more endpoints.

Example response

{"jsonrpc":"2.0","result":"0xa83efbe0","id":73}

Gas price display on Gnosisscan

Blockscout Endpoint

The BlockScout gas price api endpoint shows a recommended gas price for average, fast and slow transactions based on recently accepted transactions. Users can decide whether to increase the gas price to speed up a transaction or input a lower gas price which may take longer but is still likely to be successful.

Blockscout endpoint - Gnosis Mainnet
https://blockscout.com/xdai/mainnet/api/v1/gas-price-oracle
Blockscout endpoint - Chiado Testnet
https://blockscout.chiadochain.net/api/v1/gas-price-oracle
  • Response calculated for previous 200 blocks and updated every 30 seconds.
  • Response criteria for average, fast and slow gas estimates follow EthGasStation recommendations.

Example response

{"average":2.0,"fast":3.0,"slow":1.51}
ResponseDenomination

Response Threshold
(Min gas price per block from previous 200 blocks)

averagegwei60th percentile of min gas price txs
fastgwei90th percentile of min gas price txs (top 10%)
slowgwei35th percentile of min gas price txs

Gas price display on BlockScout