viem icon indicating copy to clipboard operation
viem copied to clipboard

Add BESCHyperchain

Open BESCLLC opened this issue 1 month ago • 1 comments

This PR adds full support for BESC Hyperchain (Chain ID 2372) to the viem chains package. It introduces a new chain definition containing: • official HTTPS + WSS RPC endpoints • native currency metadata • canonical block explorer • 3-second block time • verified Multicall3 contract + deployment block • proper EIP-155 namespace alignment

This integration enables developers to use viem with BESC Hyperchain out-of-the-box, without needing to manually define a custom chain configuration.

Why is this needed?

BESC Hyperchain is a production EVM L1 with its own RPC infrastructure, explorer, validator set, and active dApps. Adding it to viem improves compatibility across: • dApps • wallets • SDKs • RPC frameworks • tooling libraries

Many libraries depend on viem’s chain registry to enable auto-configuration, multisig support, routing, RPC calls, and wallet connections.

Alternatives considered

Before submitting this PR, I explored: • using defineChain() locally in each codebase • asking downstream libraries to manually integrate BESC • relying on user-defined chain overrides

These approaches create fragmentation and inconsistent chain definitions across developers. Adding BESC Hyperchain directly to viem provides a single authoritative source and improves ecosystem consistency.

Parts that may need reviewer attention • Confirmation that the field naming follows viem’s current chain conventions • Multicall3 deployment block: 164313 • RPC/WebSocket endpoints: • https://rpc.beschyperchain.com • wss://rpc.beschyperchain.com/ws • Explorer API path follows viem-accepted formatting (/api) • Block time: 3000 (3 seconds)

All values are verified and match the live chain configuration.

Additional Notes • The testnet will be submitted in a separate PR unless maintainers prefer both in one submission. • All naming and formatting conventions follow existing chain definitions in the repository.

🙏 Thank you for reviewing!

This PR aligns with viem’s contribution guidelines and ensures seamless developer support for the BESC Hyperchain ecosystem.

BESCLLC avatar Nov 14 '25 02:11 BESCLLC

⚠️ No Changeset found

Latest commit: 81869ec5b778920014afe3abb5ad3ae950cf71c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

changeset-bot[bot] avatar Nov 14 '25 02:11 changeset-bot[bot]

Chain not listed on https://github.com/ethereum-lists/chains

jxom avatar Nov 16 '25 02:11 jxom