Skip to main content

SDK Reference

This section documents @privacy-pools-v2/sdk, the TypeScript layer that wraps the contracts and circuits so applications rarely touch either directly.

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.