Skip to content

Commit

Permalink
add new eip1559 rpc call
Browse files Browse the repository at this point in the history
  • Loading branch information
shalzz committed Mar 19, 2022
1 parent b6915ed commit 59594b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export async function handleRequest(request: Request) {
'eth_submitWork',
'eth_submitHashrate',
'eth_getProof',
'eth_feeHistory',
];

const httpClient = new HttpClient(url, <RequestInit>{
Expand Down
3 changes: 3 additions & 0 deletions src/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ export class HttpClient {
case "eth_getStorageAt":
defaultBlock = params[2];
break;
case "eth_feeHistory":
defaultBlock = params[1];
break;
};

switch (defaultBlock) {
Expand Down

0 comments on commit 59594b1

Please sign in to comment.