grant_disclosure
Grant a disclosure level to a grantee identity for an attestation on-chain. Attester-only operation with levels public, legitimate-interest, or authority.
Instructions
Grant a disclosure level for an attestation to a grantee identity, on-chain via the AttestationVault. Attester-only: the transaction is rejected in-circuit unless the session wallet is the original attester. level: 0=public, 1=legitimate-interest, 2=authority. Async: returns { jobId, status } immediately; poll get_job_status until succeeded or failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | Yes | 0=public, 1=legitimate-interest, 2=authority | |
| grantee | Yes | Grantee identity (64 hex Bytes<32>) | |
| sessionId | Yes | Wallet session id (must be the attester) | |
| payloadHash | Yes | The attestation payload hash (64 hex) | |
| idempotencyKey | No | Dedupes retries | |
| contractAddress | Yes | AttestationVault deployment | |
| sponsorSessionId | No | Optional second session that pays the dust fee | |
| compiledArtifactRef | No | Contract artifact ref, defaults to 'attestation-vault' |