eth_feeHistory
网络: Arbitrum One · 主网 · Chain ID 42161(0xa4b1)
计为 1 个 Request。 计费规则见 Request Counting。
描述
返回每单位 Gas 基础费与实际优先费的历史。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
blockCount | hex | 是 | 区块数量(十六进制) |
newestBlock | blockTag | 是 | 最新区块 |
rewardPercentiles | array | 否 | 奖励百分位 |
请求
{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": ["0x4", "latest", [25, 75]],
"id": 1
}代码示例
curl -X POST https://arbitrum-one-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":["0x4","latest",[25,75]],"id":1}'