Skip to main content

Auditor Queries

Transaction details in Privacy Boost are encrypted, and only the participating wallets can read them. Some deployments need an authorized party, such as a compliance officer or a regulator, to inspect specific accounts without breaking that privacy for everyone else. The audit API does this. Each query is signed by the auditor’s key and scoped to one account. The server then logs it on-chain in the background; that log is best-effort and not retried. End users don’t need this API, and its endpoints reject requests without the operator’s admin key. For the product overview, see Auditability.

Prerequisites

If your deployment exposes the AuditGateway address through /api/v1/info, the SDK auto-discovers it. Otherwise, pass it explicitly to each call.

TypeScript

target accepts either { accountId } (decimal shielded-pool account ID) or { eoaAddress } (Ethereum address — the server resolves it to an account via the auth-leaves table). Use whichever the auditor’s frontend captured. Filter fields are optional and can be combined: For balances:

CLI

Flags map 1:1 to the TypeScript options. --audit-gateway is optional when the server advertises it via /api/v1/info; otherwise pass it explicitly. Output formats:

React Native, iOS, Android

Call auditQueryTransactions() and auditQueryBalances() on PrivacyBoost. They take the same fields as the TypeScript options and sign with the current wallet delegate.

Errors you should handle explicitly

What auditors can and can’t do

A confirmed AuditLogCreated event records the auditor, target, action, metadata, and block timestamp. The API returns data without waiting for log submission or confirmation. Operators must monitor logging failures and apply any per-account disclosure policy outside the current contract.