From 9ece0220ac10fbd3bda0379061648ad4680a210c Mon Sep 17 00:00:00 2001 From: Nikolas De Giorgis Date: Wed, 15 Oct 2025 09:14:15 +0100 Subject: [PATCH] maintenance: switch from Etherscan.io to Shiftcrypto's proxy server. --- backend/coins/eth/etherscan/etherscan.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/coins/eth/etherscan/etherscan.go b/backend/coins/eth/etherscan/etherscan.go index 6e67d4cbc8..c06713c2dd 100644 --- a/backend/coins/eth/etherscan/etherscan.go +++ b/backend/coins/eth/etherscan/etherscan.go @@ -47,7 +47,6 @@ import ( var CallsPerSec = 3.8 const ( - apiKey = "X3AFAGQT2QCAFTFPIH9VJY88H9PIQ2UWP7" maxAddressesForBalances = 20 ) @@ -65,7 +64,7 @@ type EtherScan struct { // NewEtherScan creates a new instance of EtherScan. func NewEtherScan(chainId string, httpClient *http.Client, limiter *rate.Limiter) *EtherScan { return &EtherScan{ - url: "https://api.etherscan.io/v2/api", + url: "https://etherscan-api.shiftcrypto.dev/v2/api", httpClient: httpClient, limiter: limiter, chainId: chainId, @@ -76,7 +75,6 @@ func (etherScan *EtherScan) call(ctx context.Context, params url.Values, result if err := etherScan.limiter.Wait(ctx); err != nil { return errp.WithStack(err) } - params.Set("apikey", apiKey) params.Set("chainId", etherScan.chainId) response, err := etherScan.httpClient.Get(etherScan.url + "?" + params.Encode()) if err != nil {