From 9e74d14432e6efebdff21b9a7d2e6143af55e143 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Sat, 25 Nov 2023 17:52:15 -0500 Subject: [PATCH] Added Base network to AlchemyProvider (#4384). --- src.ts/providers/network.ts | 4 ++++ src.ts/providers/provider-alchemy.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src.ts/providers/network.ts b/src.ts/providers/network.ts index 8c26032044..88a1fa45ae 100644 --- a/src.ts/providers/network.ts +++ b/src.ts/providers/network.ts @@ -419,6 +419,10 @@ function injectCommonNetworks(): void { }); registerEth("arbitrum-goerli", 421613, { }); + registerEth("base", 8453, { ensNetwork: 1 }); + registerEth("base-goerli", 84531, { }); + registerEth("base-sepolia", 84532, { }); + registerEth("bnb", 56, { ensNetwork: 1 }); registerEth("bnbt", 97, { }); diff --git a/src.ts/providers/provider-alchemy.ts b/src.ts/providers/provider-alchemy.ts index 82d4fa7d70..c423164f0e 100644 --- a/src.ts/providers/provider-alchemy.ts +++ b/src.ts/providers/provider-alchemy.ts @@ -32,6 +32,10 @@ function getHost(name: string): string { return "arb-mainnet.g.alchemy.com"; case "arbitrum-goerli": return "arb-goerli.g.alchemy.com"; + case "base": + return "base-mainnet.g.alchemy.com"; + case "base-goerli": + return "base-goerli.g.alchemy.com"; case "matic": return "polygon-mainnet.g.alchemy.com"; case "matic-mumbai":