2.0 RC docsView 1.x docs
v2.0.0-rc.1 release candidate
The API is frozen and later candidates carry fixes only, except the receipt-free and Safe create surface of /fhe-airdrop, which is @beta. Published on the next dist-tag; latest stays on 1.6.0 until 2.0.0.
Disperse 2.0 · Events · 21@tokenops/sdk/fhe-disperse

Disperse 2.0 event reference.

The contracts are unchanged from the 1.x line. What changed is how strictly the SDK reads them: a receipt without the event a write depends on now throws ReceiptEventNotFoundError, and a repeated one ReceiptEventAmbiguousError. With waitForReceipt: false, read these logs from the executed transaction yourself.

Registration· 2

EventArgs
UserRegistered(indexed user, wallet0, wallet1)
Initialized(version)

Dispersal· 3

EventArgs
ConfidentialTokensDispersed(indexed token, indexed sender, recipientCount, feeType)
WalletDistribution(indexed sender, wallet, recipients, requested, transferred)
DirectDistribution(indexed sender, recipients, requested, transferred)

Disclosure· 1

EventArgs
HandlesDisclosedToParty(indexed discloser, indexed party, handles)

Fees + limits· 8

EventArgs
CustomFeeSet(indexed user, gasFee, tokenFee)
CustomFeeDisabled(indexed user)
FeeConfigUpdated(config)
GasFeeWithdrawn(indexed to, amount)
TokenFeeWithdrawn(indexed token, indexed to, amount)
MaxBatchSizeDirectUpdated(oldSize, newSize)
MaxBatchSizeHoldingUpdated(oldSize, newSize)
MaxBatchSizeTokenFeeUpdated(oldSize, newSize)

Recovery + admin· 4

EventArgs
Paused(account)
Unpaused(account)
ConfidentialTokensRescued(indexed token, indexed to)
ERC20Rescued(indexed token, indexed to, amount)

Roles· 3

EventArgs
RoleGranted(indexed role, indexed account, indexed sender)
RoleRevoked(indexed role, indexed account, indexed sender)
RoleAdminChanged(indexed role, indexed previousAdminRole, indexed newAdminRole)
Indexer recipe: subscribe via viem's parseEventLogs({ abi, logs }) and persist by topic. The ACL.Allowed event from the FHE coprocessor is the canonical source for handle ownership — see the indexing events recipe (coming soon).Browse recipes