Skip to content

Commit

Permalink
feat: add B3 Sepolia chain (#2577)
Browse files Browse the repository at this point in the history
* Add B3 Sepolia

* Add changeset

* Update gorgeous-pots-impress.md

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
qiwu7 and jxom authored Aug 2, 2024
1 parent 4172928 commit 7abfb47
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-pots-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added B3 Sepolia chain.
26 changes: 26 additions & 0 deletions src/chains/definitions/b3Sepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 168_587_773 // base-sepolia

export const b3Sepolia = /*#__PURE__*/ defineChain({
id: 1993,
name: 'B3 Sepolia',
nativeCurrency: {
name: 'Ether',
symbol: 'ETH',
decimals: 18,
},
rpcUrls: {
default: {
http: ['https://sepolia.b3.fun'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://sepolia.explorer.b3.fun',
},
},
testnet: true,
sourceId,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export { auroraTestnet } from './definitions/auroraTestnet.js'
export { auroria } from './definitions/auroria.js'
export { avalanche } from './definitions/avalanche.js'
export { avalancheFuji } from './definitions/avalancheFuji.js'
export { b3Sepolia } from './definitions/b3Sepolia.js'
export { bahamut } from './definitions/bahamut.js'
export { base } from './definitions/base.js'
export { baseGoerli } from './definitions/baseGoerli.js'
Expand Down

0 comments on commit 7abfb47

Please sign in to comment.