---
title: "zks_getMainContract"
method: POST
path: "/zks_getMainContract"
tags: ["ZKSync API"]
---

# zks_getMainContract

`POST /zks_getMainContract`

Retrieves the main contract address, also known as the DiamondProxy

## Request body

- object
  - `jsonrpc` string, required — JSON-RPC version
  - `method` string, required — The method to call
  - `params` unknown[] — No parameters
    - unknown
  - `id` integer, required — Request identifier

## Response `200`

Returns the main contract address

- object
  - `jsonrpc` string
  - `id` integer
  - `result` string — The main contract address (20 bytes)

---

[API](https://skmtc.dev/abs/apis/abstract-json-rpc-api.md) · [All operations](https://skmtc.dev/abs/apis/abstract-json-rpc-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/abs/abstract-json-rpc-api/revisions/65e951da6380/schema)
