Ethereum Classic
eth_feeHistory17 额度
返回一段区块范围内的历史 gas 手续费数据。
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| blockCount | QUANTITY | 区块数量。 |
| newestBlock | QUANTITY | TAG | 最新区块。 |
| rewardPercentiles | number[] | 优先费奖励的百分位。 |
返回值
类型
Object
手续费历史对象(baseFeePerGas、gasUsedRatio、reward 等)。
代码示例
curl https://holy-burned-sky-etc-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
]
]
}'