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:
Vasilis Antonakis 2018-05-28 21:49:20 +03:00 committed by GitHub
parent 417065bad6
commit 7702d4ce7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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');