Skip to content

Commit b9e68b7

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

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export class HttpClient {
5959
// Should always be from the latest block
6060
case "eth_blockNumber":
6161
case "eth_estimateGas":
62+
case "eth_feeHistory":
63+
case "eth_gasPrice":
6264
defaultBlock = "latest";
6365
break;
6466
// Extract the blocknumber / label

0 commit comments

Comments
 (0)