zkEVM client

Important

Make sure you have followed the installation and get started documentation.

The ZkEvmClient interacts with the zkEVM bridge.

import { ZkEvmClient, use } from "@maticnetwork/maticjs"

const zkEvmClient = new ZkEvmClient();

await zkEvmClient.init({
  network: <network name>,  // 'testnet'
  version: <network version>, // 'blueberry'
  parent: {
    provider: <parent provider>,
    defaultConfig: {
      from: <from address>
    }
  },
  child: {
    provider: <child provider>,
    defaultConfig: {
      from: <from address>
    }
  }
});

Once the ZkEvmClient is initialized, you can interact with all available APIs from MaticJS SDK.


Last update: January 17, 2024
Authors: avenbreaks