Features

Selective Reveal API

Grant cryptographic, scoped, and revocable access to your private transaction history for designated third parties.

For developers and institutional users, the Selective Reveal API provides a way to integrate compliance into private workflows — allowing protocols to remain private by default while meeting regulatory requirements on-demand.

// Example: Create a scoped view grant
const grant = await anonProof.createGrant({
  recipient: "0xAuditorAddress...",
  assets: ["ETH", "USDC"],
  dateRange: { start: "2026-01-01", end: "2026-03-31" },
  revocable: true,
  expiresAt: Math.floor(Date.now() / 1000) + 86400 * 90 // 90 days
});

// Later: revoke if needed
await anonProof.revokeGrant(grant.id);

// Check grant status
const status = await anonProof.getGrantStatus(grant.id);

API Capabilities

  • createGrant: Issue a scoped view grant with asset, date, and recipient filters.
  • revokeGrant: Revoke access instantly — on-chain, irreversible within one block.
  • listGrants: View all active and expired grants for your wallet.
  • getGrantStatus: Check if a grant is still valid and what scope it covers.
  • verifyProof: Cryptographically verify that a transaction belongs to a specific grant scope.

Details

AnonProof's selective reveal api integrates directly with your existing wallet infrastructure. No migration is required — the privacy layer operates transparently on top of MetaMask, Rabby, Coinbase Wallet, or any standard EVM wallet. See the Integration section for setup guides.