Skip to content

Commit

Permalink
Added Base network to AlchemyProvider (#4384).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Nov 25, 2023
1 parent 2b67488 commit 9e74d14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src.ts/providers/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, { });

Expand Down
4 changes: 4 additions & 0 deletions src.ts/providers/provider-alchemy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 9e74d14

Please sign in to comment.