v1

latestOpenAPI 3.0.02026-07-26541677.9 KB
ZKSync API

zks_getMainContract

Retrieves the main contract address, also known as the DiamondProxy

post/zks_getMainContract

Request body

jsonrpcstring required

JSON-RPC version

methodstring required

The method to call

idinteger required

Request identifier

Response

Returns the main contract address

jsonrpcstring
idinteger
resultstring

The main contract address (20 bytes)

Example response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x32400084c286cf3e17e7b677ea9583e60a000324"
}