@@ -46,13 +46,13 @@ const getABIUrl = ({
4646} ) => {
4747 const ABI_ADDRESS = '<<address>>' ;
4848 const TEMPORARY_ABI_EXPLORER : Keychain = {
49- '0x1' : `https://api.etherscan.io/api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ chainId ] } ` ,
50- '0x64' : `https://api.gnosisscan .io/api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ chainId ] } ` ,
51- '0x89' : `https://api.polygonscan.com/ api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ chainId ] } ` ,
52- '0xa' : `https://api-optimistic .etherscan.io/api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ chainId ] } ` ,
53- '0xa4b1' : `https://api.arbiscan .io/api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apiKey=${ explorerKeys [ chainId ] } ` ,
54- '0xaa36a7' : `https://api-sepolia .etherscan.io/api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ chainId ] } ` ,
55- '0x2105' : `https://api.basescan.org/ api?module=contract&action=getabi&address=${ ABI_ADDRESS } &apiKey=${ explorerKeys [ chainId ] } ` ,
49+ '0x1' : `https://api.etherscan.io/v2/ api?chainid=1& module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ '0x1' ] } ` ,
50+ '0x64' : `https://api.etherscan .io/v2/ api?chainid=100& module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ '0x1' ] } ` ,
51+ '0x89' : `https://api.etherscan.io/v2/ api?chainid=137& module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ '0x1' ] } ` ,
52+ '0xa' : `https://api.etherscan.io/v2/ api?chainid=10& module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ '0x1' ] } ` ,
53+ '0xa4b1' : `https://api.etherscan .io/v2/ api?chainid=42161& module=contract&action=getabi&address=${ ABI_ADDRESS } &apiKey=${ explorerKeys [ '0x1' ] } ` ,
54+ '0xaa36a7' : `https://api.etherscan.io/v2/ api?chainid=11155111& module=contract&action=getabi&address=${ ABI_ADDRESS } &apikey=${ explorerKeys [ '0x1' ] } ` ,
55+ '0x2105' : `https://api.etherscan.io/v2/ api?chainid=8453& module=contract&action=getabi&address=${ ABI_ADDRESS } &apiKey=${ explorerKeys [ '0x1' ] } ` ,
5656 } ;
5757
5858 return TEMPORARY_ABI_EXPLORER [ chainId ] ?. replace ( ABI_ADDRESS , contractAddress ) ;
0 commit comments