22 * mapping from DethCode subdomain to Etherscan-like API URL
33 */
44export const explorerApiUrls = {
5- etherscan : "https://api.etherscan.io/api" ,
5+ etherscan : "https://api.etherscan.io/v2/ api?chainid=1 " ,
66 "sepolia.etherscan" : "https://api-sepolia.etherscan.io/api" ,
77 "holesky.etherscan" : "https://api-holesky.etherscan.io/api" ,
8- bscscan : "https://api.bscscan.com/ api" ,
8+ bscscan : "https://api.etherscan.io/v2/ api?chainid=56 " ,
99 "testnet.bscscan" : "https://api-testnet.bscscan.com/api" ,
1010 hecoinfo : "https://api.hecoinfo.com/api" ,
1111 "testnet.hecoinfo" : "https://api-testnet.hecoinfo.com/api" ,
1212 ftmscan : "https://api.ftmscan.com/api" ,
1313 "testnet.ftmscan" : "https://api-testnet.ftmscan.com/api" ,
14- "optimistic.etherscan" : "https://api-optimistic .etherscan.io/api" ,
14+ "optimistic.etherscan" : "https://api.etherscan.io/v2/ api?chainid=10 " ,
1515 "sepolia-optimistic.etherscan" :
1616 "https://api-sepolia-optimistic.etherscan.io/api" ,
17- polygonscan : "https://api.polygonscan.com/ api" ,
17+ polygonscan : "https://api.etherscan.io/v2/ api?chainid=137 " ,
1818 "testnet.polygonscan" : "https://api-testnet.polygonscan.com/api" ,
19- arbiscan : "https://api.arbiscan .io/api" ,
19+ arbiscan : "https://api.etherscan .io/v2/ api?chainid=42161 " ,
2020 "sepolia.arbiscan" : "https://api-sepolia.arbiscan.io/api" ,
2121 snowtrace : "https://api.snowtrace.io/api" ,
2222 "testnet.snowtrace" : "https://api-testnet.snowtrace.io/api" ,
2323 cronoscan : "https://api.cronoscan.com/api" ,
24- basescan : "https://api.basescan.org/ api" ,
24+ basescan : "https://api.etherscan.io/v2/ api?chainid=8453 " ,
2525 "sepolia.basescan" : "https://api-sepolia.basescan.org/api" ,
26- gnosisscan : "https://api.gnosisscan .io/api" ,
27- fraxscan : "https://api.fraxscan.com/ api" ,
26+ gnosisscan : "https://api.etherscan .io/v2/ api?chainid=100 " ,
27+ fraxscan : "https://api.etherscan.io/v2/ api?chainid=252 " ,
2828 "holesky.fraxscan" : "https://api-holesky.fraxscan.com/api" ,
29- blastscan : "https://api.blastscan .io/api" ,
29+ blastscan : "https://api.etherscan .io/v2/ api?chainid=81457 " ,
3030 "sepolia.blastscan" : "https://api-sepolia.blastscan.io/api" ,
31- sonicscan : "https://api.sonicscan.org/ api" ,
31+ sonicscan : "https://api.etherscan.io/v2/ api?chainid=146 " ,
3232 "testnet.sonicscan" : "https://api-testnet.sonicscan.org/api" ,
3333} ;
3434
@@ -80,7 +80,6 @@ const ARBISCAN_KEY = "X3ZWJBXC14HTIR3B9DNYGEUICEIKKZ9ENZ";
8080const POLYGONSCAN_KEY = "RV4YXDXEMIHXMC7ZXB8T82G4F56FRZ1SZQ" ;
8181const CRONOSCAN_KEY = "BGAN1CWT8E1A2XRS3FU61UP7XXFMHBWNSY" ;
8282const BASESCAN_KEY = "ICQQDUA1C8R2EZY6M4QIIV7WUEZM8INNA7" ;
83- const GNOSISSCAN_KEY = "7PWN1FIPXW6WDSGH3PIHRW1EEU4A882QSQ" ;
8483const FRAXSCAN_KEY = "TEUJWRCAKIXQCUR7XZRKCFRH3QHH344PAM" ;
8584const BLASTSCAN_KEY = "G6DR1ZFYP54GG49SJ9GID37SFQPV96H77E" ;
8685const SONICSCAN_KEY = "QTH3YA3WFHJH76EV6KWN2PQTDJKA85PN4D" ;
@@ -91,13 +90,13 @@ export const explorerApiKeys: Record<ApiName, string> = {
9190 "sepolia.etherscan" : ETHERSCAN_KEY ,
9291 "holesky.etherscan" : ETHERSCAN_KEY ,
9392
94- "optimistic.etherscan" : OPTIMISM_KEY ,
93+ "optimistic.etherscan" : ETHERSCAN_KEY ,
9594 "sepolia-optimistic.etherscan" : OPTIMISM_KEY ,
9695
97- arbiscan : ARBISCAN_KEY ,
96+ arbiscan : ETHERSCAN_KEY ,
9897 "sepolia.arbiscan" : ARBISCAN_KEY ,
9998
100- bscscan : BSCSCAN_KEY ,
99+ bscscan : ETHERSCAN_KEY ,
101100 "testnet.bscscan" : BSCSCAN_KEY ,
102101
103102 ftmscan : FTMSCAN_KEY ,
@@ -106,25 +105,25 @@ export const explorerApiKeys: Record<ApiName, string> = {
106105 hecoinfo : HECOINFO_KEY ,
107106 "testnet.hecoinfo" : HECOINFO_KEY ,
108107
109- polygonscan : POLYGONSCAN_KEY ,
108+ polygonscan : ETHERSCAN_KEY ,
110109 "testnet.polygonscan" : POLYGONSCAN_KEY ,
111110
112111 snowtrace : SNOWTRACE_KEY ,
113112 "testnet.snowtrace" : SNOWTRACE_KEY ,
114113
115114 cronoscan : CRONOSCAN_KEY ,
116115
117- basescan : BASESCAN_KEY ,
116+ basescan : ETHERSCAN_KEY ,
118117 "sepolia.basescan" : BASESCAN_KEY ,
119118
120- gnosisscan : GNOSISSCAN_KEY ,
119+ gnosisscan : ETHERSCAN_KEY ,
121120
122- fraxscan : FRAXSCAN_KEY ,
121+ fraxscan : ETHERSCAN_KEY ,
123122 "holesky.fraxscan" : FRAXSCAN_KEY ,
124123
125- blastscan : BLASTSCAN_KEY ,
124+ blastscan : ETHERSCAN_KEY ,
126125 "sepolia.blastscan" : BLASTSCAN_KEY ,
127126
128- sonicscan : SONICSCAN_KEY ,
127+ sonicscan : ETHERSCAN_KEY ,
129128 "testnet.sonicscan" : SONICSCAN_KEY ,
130129} ;
0 commit comments