Skip to content

Commit

Permalink
feat(blockchain-explorers): add support for goerli contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
PJColombo committed Jul 19, 2022
1 parent e1fcbc9 commit e4ddeaa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/utils/server/blockchain-explorers.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,17 @@ export const getExplorerAPIData = (networkId: number): ExplorerAPIData => {
apiKey = process.env.ETHERSCAN_EXPLORER_API_KEY;
baseUrl = "https://api.etherscan.io/api";
break;
case 3:
apiKey = process.env.ETHERSCAN_EXPLORER_API_KEY;
baseUrl = "https://api-ropsten.etherscan.io/api";
case 4:
apiKey = process.env.ETHERSCAN_EXPLORER_API_KEY;
baseUrl = "https://api-rinkeby.etherscan.io/api";
break;
case 5:
apiKey = process.env.ETHERSCAN_EXPLORER_API_KEY;
baseUrl = "https://api-goerli.etherscan.io/api";
break;
case 100:
apiKey = "";
baseUrl = "https://blockscout.com/xdai/mainnet/api";
Expand Down

0 comments on commit e4ddeaa

Please sign in to comment.