Skip to content

Commit 9e74d14

Browse files
committed
Added Base network to AlchemyProvider (#4384).
1 parent 2b67488 commit 9e74d14

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src.ts/providers/network.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,10 @@ function injectCommonNetworks(): void {
419419
});
420420
registerEth("arbitrum-goerli", 421613, { });
421421

422+
registerEth("base", 8453, { ensNetwork: 1 });
423+
registerEth("base-goerli", 84531, { });
424+
registerEth("base-sepolia", 84532, { });
425+
422426
registerEth("bnb", 56, { ensNetwork: 1 });
423427
registerEth("bnbt", 97, { });
424428

src.ts/providers/provider-alchemy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function getHost(name: string): string {
3232
return "arb-mainnet.g.alchemy.com";
3333
case "arbitrum-goerli":
3434
return "arb-goerli.g.alchemy.com";
35+
case "base":
36+
return "base-mainnet.g.alchemy.com";
37+
case "base-goerli":
38+
return "base-goerli.g.alchemy.com";
3539
case "matic":
3640
return "polygon-mainnet.g.alchemy.com";
3741
case "matic-mumbai":

0 commit comments

Comments
 (0)