API baseUrl changed
Hello, I noticed there is a change in the baseUrl of etherscan APIs ** Important: (Feb-12-2018) The ROPSTEN testnet API service URL has been updated to http://api-ropsten.etherscan.io . The previous API url http://ropsten.etherscan.io will cease to function as of March 31, 2018 https://ropsten.etherscan.io/apis same goes for all other testnets nice work btw :)
This commit is contained in:
parent
417065bad6
commit
7702d4ce7c
@ -35,13 +35,13 @@ function EtherscanProvider(network, apiKey) {
|
|||||||
baseUrl = 'https://api.etherscan.io';
|
baseUrl = 'https://api.etherscan.io';
|
||||||
break;
|
break;
|
||||||
case 'ropsten':
|
case 'ropsten':
|
||||||
baseUrl = 'https://ropsten.etherscan.io';
|
baseUrl = 'https://api-ropsten.etherscan.io';
|
||||||
break;
|
break;
|
||||||
case 'rinkeby':
|
case 'rinkeby':
|
||||||
baseUrl = 'https://rinkeby.etherscan.io';
|
baseUrl = 'https://api-rinkeby.etherscan.io';
|
||||||
break;
|
break;
|
||||||
case 'kovan':
|
case 'kovan':
|
||||||
baseUrl = 'https://kovan.etherscan.io';
|
baseUrl = 'https://api-kovan.etherscan.io';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('unsupported network');
|
throw new Error('unsupported network');
|
||||||
|
Loading…
Reference in New Issue
Block a user