Skip to main content
Spin up a new market on-chain — you get an address you can seed, trade, and LP against next.

Prerequisites

  • A working VoizProvider (or a plain VoizMarketsClient with publicClient plus walletClient / sendCalls)
  • Gas and a connected wallet that can send txs

Steps

1. Grab the client

2. Create the market

Pass CreateMarketParams. Choose who settles it:
  • admin — set marketAdmin (required)
  • committee — set voters and threshold (1…voters.length)
You get { result, hashes, marketAddress? }. When a receipt or hash is around, the SDK pulls the new market address out for you.

3. Load a summary for the UI (optional)

Use MarketSummary for list and detail screens — it’s the object you render in the list:

Tip

If marketAddress is missing, wait for the receipt and retry, or pull client.listMarketAddresses() / listMarkets() and grab the newest one. Don’t invent addresses. Next: Seed liquidity.