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 20, 2022
1 parent b6915ed commit b9e68b7
Show file tree
Hide file tree
Showing 2 changed files with 3 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
2 changes: 2 additions & 0 deletions src/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ export class HttpClient {
// Should always be from the latest block
case "eth_blockNumber":
case "eth_estimateGas":
case "eth_feeHistory":
case "eth_gasPrice":
defaultBlock = "latest";
break;
// Extract the blocknumber / label
Expand Down

0 comments on commit b9e68b7

Please sign in to comment.