ReaduseQuery Curated
useGetWallets
Read the deployer's two registered subwallet addresses.
Import
@tokenops/sdk/fhe-disperse/reactReturn
{ data, isLoading, error, refetch }Lifecycle
ReadDescription
Read the on-chain wallet pair for a registered user.
Returns null if the user is not registered. For unregistered users, call
usePredictWallets to get the deterministic addresses they would
receive after register().
Signature
@tokenops/sdk/fhe-disperse/react
ts
function useGetWallets(args?: UseGetWalletsArgs): UseQueryResult<[Address, Address] | null, Error>;Parameters
Shape of the options object passed to the hook itself.
| Property | Type | Description |
|---|---|---|
| user | Address | The user whose wallet pair to read. Hook is disabled until set. |
Example
@tokenops/sdk/fhe-disperse/react · @example
tsx
const { data: wallets } = useGetWallets({ user });
if (wallets) { ... wallets[0], wallets[1] ... }Pulled directly from the hook's TSDoc block — the same snippet your IDE shows on hover.
See also
Other Read hooks in disperse:
useIsRegisteredHas this deployer already called register?useGetFeesRead consolidated fee information for user — combines per-user resolved fees (getFeeAmounts) with the global feeConfig toggles in one read.useGetFeeConfigRead the singleton's { gasFeeEnabled, tokenFeeEnabled, defaultGasFee, defaultTokenFee } fee config.useGetBatchLimitsRead the maximum batch size for each of the three disperse modes ("wallet", "direct", "wallet-token-fee").