Quick Reference
| Parameter | Type | Description |
|---|---|---|
block_height | number | Specific block height to query gas price for |
block_hash | string | Specific block hash to query gas price for |
null | null | Returns gas price for the latest block |
Gas Price
Returns gas price for a specificblock_height or block_hash. Using [null] will return the most recent block’s gas price.
- method:
gas_price - params:
[block_height],["block_hash"], or[null]
- null (latest)
- by block height
- by block hash
- JSON
- JavaScript
- HTTPie
Example response
Example response