Skip to main content
You are wrapping the React tree once so every screen can use the same client. After that, UI code asks for the client. Import from @voiz-digital/markets-sdk/react. Pass a batched sender if you have account abstraction.

Provider

VoizProvider

The provider builds a memoized client from the chain, the viem clients, and an optional custom sender, then puts that client in React context.

VoizProviderProps

Hook

useVoiz

Returns the Voiz React context. Throws if you call it outside <VoizProvider>. For reads and writes, take the client: const { client } = useVoiz().
addresses is the live ChainAddresses map — not Uniswap v4 managers:

Context types

VoizContextValue

VoizSendCalls

React alias of the SDK SendCalls type, used when you inject a custom sender.

SendCallsOptions

Options for injected account-abstraction or Privy senders (also re-exported from React).

Next

Helpers