parity_gasPriceHistogram - 获取gas价格直方图
parity_gasPriceHistogram
调用返回历史gas价格的直方图数据。
调用参数
无
返回结果
parity_gasPriceHistogram
调用返回历史数据对象,结构如下:
- bucketBounds:区间边界值数组
- count:区间统计值数组
示例代码
请求:
~$ curl --data '{"method":"parity_gasPriceHistogram","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
响应:
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"bucketBounds": [
"0x4a817c800",
"0x525433d01",
"0x5a26eb202",
"0x61f9a2703",
"0x69cc59c04",
"0x719f11105",
"0x7971c8606",
"0x81447fb07",
"0x891737008",
"0x90e9ee509",
"0x98bca5a0a"
],
"counts": [
487,
9,
7,
1,
8,
0,
0,
0,
0,
14
]
}
}