Skip to content
LogoLogo

Chains

The following ZKsync chains are supported in Viem:

import {
  , 
  , 
} 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 {  } from 'viem'
import {  } from 'viem/zksync'
 
export const  = ({
  ...,
  : 'ZKsync Example',
  // ...
})