From 2063e218b8fbbe5f2e9d02af8ed48e4fbc46ecc2 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Wed, 26 Jul 2023 17:07:38 -0400 Subject: [PATCH] Add BNB URLs to EtherscanProvider networks. --- src.ts/providers/provider-etherscan.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src.ts/providers/provider-etherscan.ts b/src.ts/providers/provider-etherscan.ts index 9b28c7aa0c..745f5f652a 100644 --- a/src.ts/providers/provider-etherscan.ts +++ b/src.ts/providers/provider-etherscan.ts @@ -172,6 +172,12 @@ export class EtherscanProvider extends AbstractProvider { return "https:/\/api-optimistic.etherscan.io"; case "optimism-goerli": return "https:/\/api-goerli-optimistic.etherscan.io"; + + case "bnb": + return "http:/\/api.bscscan.com"; + case "bnbt": + return "http:/\/api-testnet.bscscan.com"; + default: }