Skip to main content
@voiz/markets-sdk is the TypeScript SDK for Voiz markets on EVM. List markets, seed pools, trade, add liquidity, and read positions — with viem under the hood.

Install

React apps also need the React peer (optional for vanilla viem):
Import paths:
  • @voiz/markets-sdkVoizMarketsClient, helpers (quoteSeed, normalizeOddsBps, getAddresses), types, erc20Abi
  • @voiz/markets-sdk/reactVoizProvider, useVoiz

Mental model

Access everything through a client, then drill down:
Writes use an injected sendCalls (or a walletClient fallback). Call market.seed, pool.swap, and similar — the client submits for you.

Next steps

Key concepts

Client → Market → Pool → User, quotes vs writes, indexer vs RPC.

Quickstart: React / Next.js

Wrap your app with VoizProvider, then use useVoiz().client.

Quickstart: vanilla viem

Construct VoizMarketsClient without React.

Create a market

Step-by-step flows after you are set up.