From f64be16d93d925aeb5aa175118532a80077d06dc Mon Sep 17 00:00:00 2001 From: imqdee Date: Thu, 13 Nov 2025 17:49:46 +0100 Subject: [PATCH] fix: bump etherscan api to v2 --- util/EtherscanApi.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/EtherscanApi.ts b/util/EtherscanApi.ts index cec449bc..00469d7c 100644 --- a/util/EtherscanApi.ts +++ b/util/EtherscanApi.ts @@ -1,4 +1,4 @@ -const ETHERSCAN_URL = 'https://api.etherscan.io/api?' +const ETHERSCAN_URL = 'https://api.etherscan.io/v2/api?' export async function etherscanRequest( module: string, @@ -6,6 +6,7 @@ export async function etherscanRequest( params: object, ) { const query: any = { + chainid: 1, apikey: process.env.APIKEY_ETHERSCAN, module: module, action: action,