You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: src/chains/ethereum/ethereum/RPC-METHODS.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,6 +203,31 @@ Generates and returns an estimate of how much gas is necessary to allow the tran
203
203
204
204
---
205
205
206
+
#### eth_feeHistory
207
+
208
+
Returns a collection of historical block gas data and optional effective fee spent per unit of gas for a given percentile of block gas usage.
209
+
210
+
##### Arguments
211
+
212
+
-`blockCount: string`
213
+
-`newestBlock: string`
214
+
-`rewardPercentiles: number[]`
215
+
216
+
##### Returns
217
+
218
+
`Promise<FeeHistory>` : transaction base fee per gas and effective priority fee per gas for the requested/supported block range
219
+
220
+
-`oldestBlock`: - Lowest number block of the returned range.
221
+
-`baseFeePerGas`: - An array of block base fees per gas. This includes the next block after the newest of the returned range, because this value can be derived from the newest block. Zeroes are returned for pre-EIP-1559 blocks.
222
+
-`gasUsedRatio`: - An array of block gas used ratios. These are calculated as the ratio of `gasUsed` and `gasLimit`.
223
+
-`reward`: - An array of effective priority fee per gas data points from a single block. All zeroes are returned if the block is empty.
0 commit comments