Skip to content

Commit 3791548

Browse files
authored
Update eth_feeHistory (#1761)
Signed-off-by: bgravenorst <[email protected]>
1 parent 2ea5f94 commit 3791548

File tree

3 files changed

+78
-2
lines changed

3 files changed

+78
-2
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import Tabs from "@theme/Tabs"
2+
import TabItem from "@theme/TabItem"
3+
4+
<Tabs>
5+
<TabItem value="JSON">
6+
7+
```js
8+
{
9+
"jsonrpc": "2.0",
10+
"id": 1,
11+
"result": {
12+
"baseFeePerBlobGas": [
13+
"0xe3f5193b",
14+
"0xf6942037",
15+
"0xdb2e5553",
16+
"0xc2d3d9e8",
17+
"0xdb2e5553",
18+
"0xed15d41e"
19+
],
20+
"baseFeePerGas": [
21+
"0x279c70a9b",
22+
"0x2a63ee068",
23+
"0x2a01a5449",
24+
"0x299fc09af",
25+
"0x29aa0b0c5",
26+
"0x28b21aaec"
27+
],
28+
"blobGasUsedRatio": [
29+
0.8333333333333334,
30+
0,
31+
0,
32+
1,
33+
0.8333333333333334
34+
],
35+
"gasUsedRatio": [
36+
0.7806543666666667,
37+
0.46377263333333335,
38+
0.46358696666666666,
39+
0.503863,
40+
0.40701746666666666
41+
],
42+
"oldestBlock": "0x14535f8",
43+
"reward": [
44+
[
45+
"0x5f5e100",
46+
"0x34142698"
47+
],
48+
[
49+
"0x5f5e100",
50+
"0x1f619e76"
51+
],
52+
[
53+
"0x5f5e100",
54+
"0x39d10680"
55+
],
56+
[
57+
"0x6824280",
58+
"0x214c9a15"
59+
],
60+
[
61+
"0x4b571c0",
62+
"0x1ac123d6"
63+
]
64+
]
65+
}
66+
}
67+
```
68+
69+
</TabItem>
70+
</Tabs>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- `oldestBlock`: Lowest number block of the returned range expressed as a hexadecimal number.
2+
- `baseFeePerBlobGas`: Array of base fees per blob gas. Returns zeroes for blocks created before [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844).
3+
- `blobGasUsedRatio`: Array of blob gas used ratios. These are calculated as the ratio of `blobGasUsed` and the max blob gas per block.
4+
- `baseFeePerGas`: An array of block base fees per gas, including an extra block value. The extra value is the next block after the newest block in the returned range. Returns zeroes for blocks created before [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559).
5+
- `gasUsedRatio`: An array of block gas used ratios. These are calculated as the ratio of `gasUsed` and `gasLimit`.
6+
- `reward`: An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.

services/reference/ethereum/json-rpc-methods/eth_feehistory.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Params from "/services/reference/_partials/_eth_feehistory-parameters.mdx
1717

1818
## Returns
1919

20-
import Returns from "/services/reference/_partials/_eth_feehistory-returns.mdx"
20+
import Returns from "./_eth_feehistory-returns.mdx"
2121

2222
<Returns />
2323

@@ -35,6 +35,6 @@ import Request from "/services/reference/_partials/_eth_feehistory-request.mdx"
3535

3636
### Response
3737

38-
import Response from "/services/reference/_partials/_eth_feehistory-response.mdx"
38+
import Response from "./_eth_feehistory-response.mdx"
3939

4040
<Response />

0 commit comments

Comments
 (0)