---
title: "Query the state of a contract with variable name and optional index"
method: GET
path: "/queryContractStateProof"
tags: ["Transaction"]
---

# Query the state of a contract with variable name and optional index

`GET /queryContractStateProof`

## Query parameters

- `address` string
- `varname1` string
- `varname2` string
- `compressed` boolean

## Response `200`

Successful response

---

[API](https://skmtc.net/aergoio/apis/aergo-web3.md) · [All operations](https://skmtc.net/aergoio/apis/aergo-web3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aergoio/aergo-web3/revisions/710783ee8a7b/schema)
