Base
eth_feeHistory25 크레딧
Returns historical gas fee data for a range of blocks.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| blockCount | QUANTITY | Number of blocks. |
| newestBlock | QUANTITY | TAG | Newest block. |
| rewardPercentiles | number[] | Percentiles for priority fee rewards. |
반환값
타입
Object
Fee history object (baseFeePerGas, gasUsedRatio, reward, …).
코드 예제
curl https://holy-burned-sky-base-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7 \
-X POST \
-H 'content-type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_feeHistory",
"params": [
"0x5",
"latest",
[
25,
75
]
]
}'