Skip to main content

zks_getMainContract RPC Method

Returns the address of the zkSync Era contract.

Updated on
Apr 03, 2026

Parameters

This method does not accept any parameters

Returns

result
string

The address of the zkSync Era contract

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x2edc71e9991a962c7fe172212d1aa9e50480fbb9"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x2edc71e9991a962c7fe172212d1aa9e50480fbb9"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free