From 7702d4ce7c149bcb29716219f21820656c21175f Mon Sep 17 00:00:00 2001 From: Vasilis Antonakis Date: Mon, 28 May 2018 21:49:20 +0300 Subject: [PATCH] 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 :) --- providers/etherscan-provider.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/etherscan-provider.js b/providers/etherscan-provider.js index adfee794f..43dd1aba7 100644 --- a/providers/etherscan-provider.js +++ b/providers/etherscan-provider.js @@ -35,13 +35,13 @@ function EtherscanProvider(network, apiKey) { baseUrl = 'https://api.etherscan.io'; break; case 'ropsten': - baseUrl = 'https://ropsten.etherscan.io'; + baseUrl = 'https://api-ropsten.etherscan.io'; break; case 'rinkeby': - baseUrl = 'https://rinkeby.etherscan.io'; + baseUrl = 'https://api-rinkeby.etherscan.io'; break; case 'kovan': - baseUrl = 'https://kovan.etherscan.io'; + baseUrl = 'https://api-kovan.etherscan.io'; break; default: throw new Error('unsupported network');