check_zkverify_status
Check if your zkVerify proof aggregation is posted on Horizen by querying the aggregation proxy contract, with optional on-chain Merkle proof verification.
Instructions
Check whether a zkVerify proof aggregation has been posted to Horizen by reading the zkVerify aggregation proxy contract. Two modes: (1) existence check — provide domainId and aggregationId only; reads proofsAggregations(domainId, aggregationId) and returns the Merkle root if posted; (2) full verification — also provide leaf, merklePath, leafCount, and index to call verifyProofAggregation(domainId, aggregationId, leaf, merklePath, leafCount, index) and get a definitive on-chain bool. Supports both mainnet (0xCb47A3C3B9Eb2E549a3F2EA4729De28CafbB2b69) and testnet (0x3098A6974649478f0133046e44105AA84e868C21).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domainId": "<domainId>",
"aggregationId": "<aggregationId>"
},
"name": "check_zkverify_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| leaf | No | Your proof's leaf hash in the aggregation Merkle tree. Obtained via aggregate_statementPath RPC on the zkVerify node. | |
| index | No | Index of your proof leaf within the aggregation Merkle tree. | |
| network | No | Horizen network to check. Mainnet is the default. Testnet uses a different contract address. | mainnet |
| domainId | Yes | zkVerify domain ID — identifies the aggregation domain. Obtained from the zkVerify SDK after proof submission. | |
| leafCount | No | Total number of leaves in the aggregation Merkle tree. | |
| merklePath | No | Merkle proof path from your leaf to the aggregation root. Obtained via aggregate_statementPath RPC. | |
| aggregationId | Yes | zkVerify aggregation ID. Obtained from the zkVerify SDK after proof submission. |