About this endpoint
What it does
Returns a snapshot of gas pricing for the selected blockchain network. You can optionally choose the chain with a query parameter; the response includes the chain, gas price, block number, and the source RPC host, plus optional fee breakdown fields.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| chain | String | No | Allowed values: ethereum, polygon, bsc, arbitrum, optimism, base, avalancheDefault: ethereum |
Response
Returns a JSON object with required chain (string), gasPriceGwei (number), blockNumber (integer), and source (string) fields, plus optional baseFeeGwei and priorityFeeGwei fields, both of which may be number or null.
| Parameter | Type | Description |
|---|---|---|
| chain | String | The chain for which the gas snapshot was taken. |
| source | String | RPC host that answered. |
| baseFeeGwei | Number | Base fee in Gwei, or null if unavailable. |
| blockNumber | Integer | Block number associated with the snapshot. |
| gasPriceGwei | Number | Gas price in Gwei. |
| priorityFeeGwei | Number | Priority fee in Gwei, or null if unavailable. |



