Skip to content

Commit 59594b1

Browse files
committed
add new eip1559 rpc call
1 parent b6915ed commit 59594b1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/handler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export async function handleRequest(request: Request) {
4848
'eth_submitWork',
4949
'eth_submitHashrate',
5050
'eth_getProof',
51+
'eth_feeHistory',
5152
];
5253

5354
const httpClient = new HttpClient(url, <RequestInit>{

src/httpClient.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ export class HttpClient {
7272
case "eth_getStorageAt":
7373
defaultBlock = params[2];
7474
break;
75+
case "eth_feeHistory":
76+
defaultBlock = params[1];
77+
break;
7578
};
7679

7780
switch (defaultBlock) {

0 commit comments

Comments
 (0)