SDK 2.1: platform toolkit + vesting engine
1.x: critical fixes onlyView 2.x docs
Vesting · Hooks · 88

Every vesting method, as a hook.

Filter by lifecycle (where in the flow), TanStack shape (how to wire it), or encryptor dependency. Import path is @tokenops/sdk/fhe-vesting/react.

Lifecycle
Return shape
Encryptor
88 hooks
Group:

Setup · deploy · 2

Deploy a factory clone or register with the singleton — the one-time entrypoint.

Configure · 10

Set fees, batch limits, claim windows. Caller is usually the factory or clone owner.

Write · 10

Headline writes — submit a tx through the connected wallet.

Batch write · 2

Bulk variants that pack N operations into one tx with one batch proof.

Disclose · ACL · 6

Grant ACL on a ciphertext handle to a third party (auditor, tax authority).

Encrypted read · 14

Returns a ciphertext handle. Some are useQuery; some are useMutation (FHE.allow grants ACL inside a tx). Pair with useDecryptedHandle.

Read · 24

Plaintext on-chain reads. TanStack Query envelope, cached + refetched.

Admin · 2

Admin-only mutations — caller must hold the relevant role.

Roles · RBAC · 5

RBAC — grant, revoke, renounce. Read role constants + membership.

Recovery · 8

Pause / unpause / withdraw / rescue — recover the system or its funds.

Introspection · 5

Deterministic CREATE2 inputs, role bytes, immutable deployment metadata.