Skip to main content
Every hook exported by @dynamic-labs-sdk/react-hooks is listed here, grouped by category. All hooks require a QueryClientProvider and a DynamicProvider ancestor — mount QueryClientProvider outside DynamicProvider.
The JavaScript SDK is headless — there is no built-in modal, wallet picker, or login form. You build all UI yourself. See the JavaScript SDK Overview for details.
New to the hooks? Read How React Hooks Work first — it covers the naming rule, which functions get a hook, and the three shapes (query, mutation, state).
For each hook the table shows:
  • Hook — the import name from @dynamic-labs-sdk/react-hooks
  • Wraps — the client function from @dynamic-labs-sdk/client
  • Shapequery (async read, returns { data, isLoading, error, refetch }), mutation (async action, returns { mutate, isPending, error, data }), or state (reactive value, returns { data, isLoading, error, refetch })

State hooks

State hooks subscribe to reactive client state and re-render when it changes. They take no arguments and return the TanStack Query result — destructure data to get the value.

Event hooks

Event hooks subscribe to client events for a component’s lifetime. They auto-unsubscribe on unmount — no manual offEvent cleanup needed.

Context


Query hooks

Query hooks wrap async read functions. They fetch on mount and return { data, isLoading, isFetching, error, refetch }. Arguments that accept undefined are pseudo-required — the hook stays disabled until a real value is passed. Pass queryParams to override TanStack Query options (staleTime, refetchInterval, enabled, etc.).

Wallets & balances

Authentication & security

Fireblocks Flow & swaps

Funding


Mutation hooks

Mutation hooks wrap async write functions. They do not run on mount — call mutate(args) to trigger. Returns { mutate, isPending, data, error, reset }. Pass mutateParams to set TanStack Query mutation options (onSuccess, onError, retry, etc.).

Authentication

MFA

Wallets

User management

Fireblocks Flow

Funding


TypeScript

Every hook with parameters exports a UseXParams type alongside the hook:
Last modified on July 7, 2026