From 59594b1d5fccfe24626ef96f0f88763b9529f34c Mon Sep 17 00:00:00 2001 From: Shaleen Jain Date: Sat, 19 Mar 2022 03:18:23 +0000 Subject: [PATCH] add new eip1559 rpc call --- src/handler.ts | 1 + src/httpClient.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/handler.ts b/src/handler.ts index 66be301..699fa54 100644 --- a/src/handler.ts +++ b/src/handler.ts @@ -48,6 +48,7 @@ export async function handleRequest(request: Request) { 'eth_submitWork', 'eth_submitHashrate', 'eth_getProof', + 'eth_feeHistory', ]; const httpClient = new HttpClient(url, { diff --git a/src/httpClient.ts b/src/httpClient.ts index f259cd2..9ec2147 100644 --- a/src/httpClient.ts +++ b/src/httpClient.ts @@ -72,6 +72,9 @@ export class HttpClient { case "eth_getStorageAt": defaultBlock = params[2]; break; + case "eth_feeHistory": + defaultBlock = params[1]; + break; }; switch (defaultBlock) {