SDK Reference
This section documents @privacy-pools-v2/sdk, the TypeScript layer that wraps the contracts and circuits so applications rarely touch either directly.
- PoolSessionBuilder
- PoolSession
- NoteManager
- Circuit artifacts loaders
- Crypto services
- Types reference
- Stealth module, on the
@privacy-pools-v2/sdk/stealthsubpath
Two further subpaths exist beside the main barrel: @privacy-pools-v2/sdk/batch-fee exposes computeBatchFees, computeBatchItemFee, and MAX_BATCH without the barrel's crypto dependencies (the relayer imports it), and @privacy-pools-v2/sdk/stealth carries the ERC-5564 module. Yield, batch, and swap operations are methods on PoolSession or on the namespace session.yieldFor(token) returns.