Skip to content

Commit

Permalink
feat: add base rpcUrls for Alchemy (#1175)
Browse files Browse the repository at this point in the history
* feat: add base rpcUrls for Alchemy

* feat: add base rpcUrls for Alchemy

* Create unlucky-dancers-float.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
avasisht23 and jxom committed Sep 10, 2023
1 parent 42d74b9 commit d697293
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-dancers-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Alchemy RPC URLs for Base chain.
4 changes: 4 additions & 0 deletions src/chains/definitions/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const base = /*#__PURE__*/ defineChain(
name: 'Base',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
alchemy: {
http: ['https://base-mainnet.g.alchemy.com/v2'],
webSocket: ['wss://base-mainnet.g.alchemy.com/v2'],
},
default: {
http: ['https://mainnet.base.org'],
},
Expand Down
4 changes: 4 additions & 0 deletions src/chains/definitions/baseGoerli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export const baseGoerli = /*#__PURE__*/ defineChain(
name: 'Base Goerli',
nativeCurrency: { name: 'Goerli Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
alchemy: {
http: ['https://base-goerli.g.alchemy.com/v2'],
webSocket: ['wss://base-goerli.g.alchemy.com/v2'],
},
default: {
http: ['https://goerli.base.org'],
},
Expand Down

1 comment on commit d697293

@vercel
Copy link

@vercel vercel bot commented on d697293 Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.