Getting Started
Install
pnpm add @tokenops/sdk viem @zama-fhe/sdk@^3
# React hook subpaths additionally need:
pnpm add wagmi react react-dom @tanstack/react-query @zama-fhe/react-sdk@^3
Node >=22 is required.
Choose a product
| Product | Import | Best for |
|---|---|---|
| Confidential vesting | @tokenops/sdk/fhe-vesting | Per-token vesting managers with confidential allocations and claim flows. |
| Confidential airdrop | @tokenops/sdk/fhe-airdrop | EIP-712 authorized confidential claims where the admin encrypts recipient-bound amounts. |
| Confidential disperse | @tokenops/sdk/fhe-disperse | Bulk ERC-7984 distributions through a chain-level singleton and per-user wallet pairs. |
| FHE utilities | @tokenops/sdk/fhe | Shared encryption shapes, ACL helpers, ERC-7984 operator ABI, and ratio scaling helpers. |
Next steps
- Confidential Vesting — per-token vesting with encrypted allocations.
- Confidential Airdrop — EIP-712 authorized confidential claims.
- Confidential Disperse — bulk encrypted distributions.
- API Reference — exact method signatures, types, and React hook exports.