Prerequisites
- A working
VoizProvider(or a plainVoizMarketsClientwithpublicClientpluswalletClient/sendCalls) - Gas and a connected wallet that can send txs
Steps
1. Grab the client
2. Create the market
PassCreateMarketParams. Choose who settles it:
admin— setmarketAdmin(required)committee— setvotersandthreshold(1…voters.length)
{ 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)
UseMarketSummary for list and detail screens — it’s the object you render in the list:
Tip
IfmarketAddress 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.