Gas Distribution API
Analysis of public pending gas price distributions.
The Blocknative Gas Distribution API gives you the distribution and breakdown of gas prices in the mempool at that moment in time.
Authentication
A valid Blocknative API key is required in the Authorization
Header of every request. Request an API key here.
Rate Limits
Each endpoint is limited to provide updated results each second for paid tier API keys, or every 5 seconds for free tier API keys. Polling faster than these rates may deliver stale data.
API Endpoint
GET
https://api.blocknative.com/gasprices/distribution
Get the gas prices of the highest n transactions eligible for inclusion in the next block. If n is not specified, it defaults to number of expected transactions in the next block.
Query Parameters
n
integer
Number of transactions (ordered by gas price) to use to build the distribution.
chainid
integer
The ID of the chain gas data being requested. Currently supported chains are 1 (Ethereum mainnet) and 137 (Polygon/Matic mainnet). Default is 1.
Headers
Authorization
string
Valid paid tier apikey
Pending transactions unlikely to be included in the next block due to poor nonce ordering are not included in distribution data
Example request
Example Response
Last updated