Disperse · Hooks · 38

Every disperse 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-disperse/react.

Lifecycle
Return shape
Encryptor
38 hooks
Group:

Setup · deploy · 3

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

Configure · 6

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

Write · 1

Headline writes — submit a tx through the connected wallet.

Disclose · ACL · 2

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

Encrypted read · 3

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

Read · 8

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

Roles · RBAC · 3

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

Recovery · 9

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

Introspection · 3

Deterministic CREATE2 inputs, role bytes, immutable deployment metadata.