Skip to content

feat(chains): add ZKsync Era Testnet (chain 312) - #5266

Merged
jxom merged 2 commits into
wevm:mainfrom
bxpana:feat/zksync-era-testnet
Oct 22, 2026
Merged

jxom merged 2 commits into
wevm:mainfrom
bxpana:feat/zksync-era-testnet

Conversation

@bxpana

@bxpana bxpana commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Adds ZKsync Era Testnet (chain 312), Matter Labs' EraVM testnet settling on Sepolia.

  • Listed in ethereum-lists/chains as eip155-312 (Add ZKsync Era Testnet (chain 312) ethereum-lists/chains#8899) and in the published chainid.network/chains.json.
  • Uses the ZKsync chainConfig (formatters, serializers, EIP-712 domain), same as zksyncSepoliaTestnet.
  • RPC https://rpc.zksync-era-testnet.zksync.dev and WebSocket wss://rpc.zksync-era-testnet.zksync.dev/ws both return eth_chainId 0x138. zks_L1ChainId returns 0xaa36a7 (Sepolia) and the base token is ETH.
  • Explorer at https://block-explorer.zksync-era-testnet.zksync.dev, with its Etherscan-style API at https://block-explorer-api.zksync-era-testnet.zksync.dev/api (getblocknobytime returns status 1).
  • Multicall3 at the canonical 0xcA11bde05977b3631167028862bE2a173976CA11, verified on the explorer (src/Multicall3.sol:Multicall3) with bytecode identical to mainnet's. blockCreated: 10618 is the block of its creation transaction (eth_getCode is empty at 10617 and non-empty at 10618).

Checks run locally:

  • pnpm test:chains --run -t "ZKsync Era Testnet": 4 passed (http, webSocket, blockExplorer.url, blockExplorer.apiUrl)
  • tsc -p tsconfig.build.json --noEmit: passes
  • biome check on the changed files: no issues
  • size-limit for the viem/chains entries: within limits
  • Live multicall against the RPC through zksyncEraTestnet returns getChainId 312

Adds ZKsync Era Testnet (chain 312), Matter Labs' EraVM testnet settling on Sepolia.
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown

@bxpana is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bb7ca75

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

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

@jxom
jxom merged commit 6834ec4 into wevm:main Oct 22, 2026
2 of 3 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants