You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If a user sets a single api key, it means it's etherscan.io key, and we can use the api v2 with multiple chain support
91
+
// If multiple keys are set, it means that l2/sidechain explorers are being used, and those keys don't work with etherscan.io api v2.
92
+
// So we keep using the v1 api of their respective explorers
93
+
constisV2=typeofapiKey==="string";
94
+
95
+
if(!isV2){
96
+
console.warn(
97
+
picocolors.yellow(
98
+
"[WARNING] Network and explorer-specific api keys are deprecated in favour of the new Etherscan v2 api. Support for v1 is expected to end by May 31st, 2025. To migrate, please specify a single Etherscan.io api key the apiKey config value."
0 commit comments