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.
Disperse 2.x · ABIs · 3

Raw Disperse 2.x ABI exports.

The singleton and subwallet ABIs are the same contracts as the 1.x line, at the same addresses. The ERC-7984 operator fragment is re-exported here because every disperse mode needs the sender's setOperator grant first.

Available ABIs

  • disperseConfidentialAbi@tokenops/sdk/fhe-disperse

    DisperseConfidential singleton: register, the three disperse entry points, disclosure, fee config and reserve, batch limits, recovery and AccessControl.

    53 fns20 events
  • disperseWalletAbi@tokenops/sdk/fhe-disperse

    Per-user subwallet clone: holds wallet-mode inflow; its approve, revoke and recover surface is callable only by the singleton.

    6 fns1 events
  • erc7984OperatorAbi@tokenops/sdk/fhe-disperse

    Minimal ERC-7984 isOperator / setOperator fragment behind setOperator, revokeOperator and the preflight's hasApprovedSingleton read. Also exported from /fhe.

    2 fns1 events

Direct viem usage

The SDK client classes are the recommended surface — they handle encryptor resolution, branded ids, retries, telemetry. But the ABIs themselves ship for one-off reads, indexing, or third-party tooling integration.

@tokenops/sdk/fhe-disperse
ts
import { getContract } from "viem";
import { disperseConfidentialAbi } from "@tokenops/sdk/fhe-disperse";

// Attach directly to viem if you'd rather skip the SDK client class —
// useful for one-off reads or for surfacing the contract in your own tooling.
const contract = getContract({
  address: contractAddress,
  abi: disperseConfidentialAbi,
  client: { public: publicClient, wallet: walletClient },
});

// Now you have a viem-typed contract — every method exists on contract.read /
// contract.write. The SDK client class wraps this with retries, encryptor resolution, branded ids —
// but the underlying ABI is the same.
For decoded event consumption, see Disperse 2.x › Events — same ABI, indexer-friendly view.Browse recipes