# Eth\_feeHistory

## eth\_feeHistory

> Returns fee market information for a range of blocks. This is typically used by wallets and other tools to estimate appropriate gas prices.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_feeHistory"],"summary":"eth_feeHistory","description":"Returns fee market information for a range of blocks. This is typically used by wallets and other tools to estimate appropriate gas prices.\n","operationId":"eth_feeHistory","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string"},"method":{"type":"string"},"params":{"type":"array","description":"Parameters:\n  1. `blockCount` — number of blocks in the requested range.\n  2. `newestBlock` — highest block number in the requested range (can be \"latest\").\n  3. `rewardPercentiles` — list of percentile values to sample priority fees from each block (optional).\n","items":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"array","items":{"type":"number","format":"float","minimum":0,"maximum":100}}]}},"id":{"type":"integer"}}}}}},"responses":{"200":{"description":"JSON-RPC Response with fee history data","content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","id","result"],"properties":{"jsonrpc":{"type":"string"},"id":{"type":"integer"},"result":{"type":"object","required":["oldestBlock","baseFeePerGas","gasUsedRatio"],"properties":{"oldestBlock":{"type":"string","description":"The lowest block number of the returned range, encoded as a hexadecimal string.\n"},"baseFeePerGas":{"type":"array","description":"An array of base fee per gas for each block in the range (plus one extra block).\n","items":{"type":"string"}},"gasUsedRatio":{"type":"array","description":"An array of floats from 0 to 1 representing the ratio of gas used to gas limit for each block.\n","items":{"type":"number","format":"float"}},"reward":{"type":"array","description":"An array of arrays of reward values (priority fees per gas), sampled at the requested percentiles. The outer array has one entry per block. The inner arrays contain values (as hex strings) for each percentile.\n","items":{"type":"array","items":{"type":"string"}}}}}}}}}}}}}}}
```
