Chains
The following zkSync chains are supported in Viem:
import {
  zkSync, 
  zkSyncSepoliaTestnet, 
} from 'viem/chains'Configuration
Viem exports zkSync's chain formatters & serializers via chainConfig. This is useful if you need to define another chain which is implemented on zkSync.
import { defineChain } from 'viem'
import { chainConfig } from 'viem/zkSync'
 
export const opStackExample = defineChain({
  ...chainConfig,
  name: 'zkSync Example',
  // ...
})