Skip to main content
This SDK is how you create a prediction market and how you trade it. A market is a question with named answers. For example: “Will ETH be above $5,000 at year end?” with Yes and No. People buy and sell those answers with a collateral token (USDC on Base and Polygon). When the result is published, the winning answer is worth 1 unit of collateral and the others are worth 0. If the question is ruled not to count, a third outcome called Invalid pays instead. You do not assemble calldata. You build one client, then ask it for markets that already exist, for one market, for one answer to quote or trade, or for one wallet’s positions.
market is the question. pool is one answer on that market’s market maker — not a second pool. user is a wallet. Copy, images, and resolution rules are metadata. They are not on the catalog; you read them from the market. How prices, liquidity, Invalid, and settlement work: How VOIZ works.

Next

Install

Add the SDK and viem first.

Set up with React

Pick this if you have a React tree: wrap once, then useVoiz().client.

Set up with viem

Pick this if you construct the client yourself (scripts, backends, non-React UI).
After you have a client: list existing markets, or create one and add the first liquidity so people can trade.