SDK 2.1: platform toolkit + vesting engine
v2.1.0 stable
SDK 2.1 is the stable release on the latest dist-tag. Install it with pnpm add @tokenops/sdk. The receipt-free and Safe create surface of /fhe-airdrop remains @beta.
Vesting 2.x · Client@tokenops/sdk/fhe-vesting

ConfidentialVestingFactoryClient

Resolves the Sepolia factory from DEPLOYED_ADDRESSES by chain id; on mainnet the registry entry is null, so construction reports DeploymentAddressUnavailableError with reason registry-not-deployed. Both create methods are overloaded on waitForReceipt: omitted or true returns the mined CreateManagerResult, false returns PendingCreateManagerResult with manager: undefined. Fee setters are positional and need FEE_MANAGER_ROLE; they use the client's gasHeadroomPercent. Address prediction lives on ConfidentialVestingFactoryAdvancedClient from @tokenops/sdk/fhe-vesting/advanced, whose predictManagerAddress takes PredictManagerArgs.

Construct

Headless TS — non-React consumers (Node, Vite, server workers). React hosts use the per-hook surface; same method names, lazy encryptor.

@tokenops/sdk/fhe-vesting
ts
import { createConfidentialVestingFactoryClient } from "@tokenops/sdk/fhe-vesting";

const client = createConfidentialVestingFactoryClient({
  publicClient,
  walletClient,
  // address optional: resolved from publicClient.chain.id
});

Methods

Introspection · 1

  • client.predictManagerAddress()Advanced client only. Block-dependent: the factory packs the deployment block into the clone args, so it is for historical lookups at a known blockNumber, not pre-deploy prediction.

Configure · 8

Read · 8