diff --git a/.changeset/thirty-plants-scream.md b/.changeset/thirty-plants-scream.md new file mode 100644 index 0000000000..761c772ab3 --- /dev/null +++ b/.changeset/thirty-plants-scream.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added B3 chain diff --git a/src/chains/definitions/b3.ts b/src/chains/definitions/b3.ts new file mode 100644 index 0000000000..4af7d78eff --- /dev/null +++ b/src/chains/definitions/b3.ts @@ -0,0 +1,25 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +const sourceId = 8453 // base + +export const b3 = /*#__PURE__*/ defineChain({ + id: 8333, + name: 'B3', + nativeCurrency: { + name: 'Ether', + symbol: 'ETH', + decimals: 18, + }, + rpcUrls: { + default: { + http: ['https://mainnet-rpc.b3.fun/http'], + }, + }, + blockExplorers: { + default: { + name: 'Blockscout', + url: 'https://explorer.b3.fun', + }, + }, + sourceId, +}) diff --git a/src/chains/definitions/b3Sepolia.ts b/src/chains/definitions/b3Sepolia.ts index 74e4a16419..f832a571a9 100644 --- a/src/chains/definitions/b3Sepolia.ts +++ b/src/chains/definitions/b3Sepolia.ts @@ -12,7 +12,7 @@ export const b3Sepolia = /*#__PURE__*/ defineChain({ }, rpcUrls: { default: { - http: ['https://sepolia.b3.fun'], + http: ['https://sepolia.b3.fun/http'], }, }, blockExplorers: { diff --git a/src/chains/index.ts b/src/chains/index.ts index b37eae6cc1..f47a86f5c3 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -25,6 +25,7 @@ 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 { b3 } from './definitions/b3.js' export { bahamut } from './definitions/bahamut.js' export { base } from './definitions/base.js' export { baseGoerli } from './definitions/baseGoerli.js'