Skip to content

Commit c13d87b

Browse files
authored
Add Goerli and Sepolia to the API list
Hey @sebs Thanks a lot for this amazing library. I created this PR to include the Sepolia and Goerli API endpoints. Currently I'm creating the client (with `axios.create`) to support those two, but I'd be cool if I have directly included on the library. Thanks!
1 parent 93ec011 commit c13d87b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/pick-chain-url.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const OTHER_API_URL_MAP = {
33
ropsten: 'https://api-ropsten.etherscan.io',
44
kovan: 'https://api-kovan.etherscan.io',
55
rinkeby: 'https://api-rinkeby.etherscan.io',
6+
goerli: 'https://api-goerli.etherscan.io',
7+
sepolia: 'https://api-sepolia.etherscan.io',
68
homestead: 'https://api.etherscan.io',
79
arbitrum: 'https://api.arbiscan.io',
810
arbitrum_rinkeby: 'https://api-testnet.arbiscan.io'
@@ -21,4 +23,4 @@ function pickChainUrl(chain) {
2123
}
2224

2325

24-
module.exports = pickChainUrl;
26+
module.exports = pickChainUrl;

0 commit comments

Comments
 (0)