Skip to main content
React wiring for the SDK — the provider builds a VoizMarketsClient; your UI should go through useVoiz().client. Import from @voiz/markets-sdk/react. Inject sendCalls on <VoizProvider> for Privy / AA; prefer high-level client / market / pool methods over assembling calls yourself.

Provider

VoizProvider

Builds a memoized VoizMarketsClient from chain, clients, and an optional custom sender, and puts it in React context.

VoizProviderProps

Hook

useVoiz

Full Voiz React context. Throws if used outside <VoizProvider>. Prefer const { client } = useVoiz() for protocol reads and writes.

Context types

VoizContextValue

VoizSendCalls

Alias of the SDK SendCalls type for React injection.

SendCallsOptions

Options for injected AA / Privy senders (also re-exported from React).