zks_getMainContract | zkSync Era

The zks_getMainContract API method is designed to return the address of the main zkSync Era smart contract the L1. This contract address is fundamental for developers and applications interfacing with the zkSync network.

👍

Get your own node endpoint today

Start for free and elevate your app to production levels immediately. No credit card required.

Sign up with your GitHub, X, Google, or Microsoft account for immediate access.

Parameters

  • none

Response

  • result — the address of the zkSync Era main contract on the L1 blockchain.

Use case

This method returns the main contract address where zkSync holds funds on the L1 network (Ethereum). It could be used as interface to make a bridge between L1 and L2.

Try the zks_getMainContract RPC method yourself

Language
Click Try It! to start a request and see the response here!