Skip to content

Commit

Permalink
Add Binance Smart Chain networks to hardhat-etherscan
Browse files Browse the repository at this point in the history
  • Loading branch information
purperen authored Jan 27, 2021
1 parent e6eaaf0 commit dcddc7b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/hardhat-etherscan/src/network/prober.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ enum NetworkID {
RINKEBY = 4,
GOERLI = 5,
KOVAN = 42,
// Binance Smart Chain
BSC = 56,
BSC_TESTNET = 97,
}

const networkIDtoEndpoints: NetworkMap = {
Expand All @@ -45,6 +48,14 @@ const networkIDtoEndpoints: NetworkMap = {
apiURL: "https://api-kovan.etherscan.io/api",
browserURL: "https://kovan.etherscan.io",
},
[NetworkID.BSC]: {
apiURL: "https://api.bscscan.com/api",
browserURL: "https://bscscan.com",
},
[NetworkID.BSC_TESTNET]: {
apiURL: "https://api-testnet.bscscan.com/api",
browserURL: "https://testnet.bscscan.com",
},
};

export async function getEtherscanEndpoints(
Expand Down

0 comments on commit dcddc7b

Please sign in to comment.