Gas Price Oracle
xDai gas price recommendations api 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.

Example response

1
{"average":3.08,"fast":30.0,"slow":1.0}
Copied!
Response
Denomination
Response Threshold (Min gas price per block from previous 200 blocks)
average
gwei
60th percentile of min gas price txs
fast
gwei
90th percentile of min gas price txs (top 10%)
slow
gwei
35th percentile of min gas price txs
Gas price display on BlockScout
Last modified 1mo ago
Export as PDF
Copy link