build_create_lab_market_transaction
Builds an unsigned transaction to create a Lab market on Solana prediction markets, validating that the market type and required timing (event time or measurement start) are provided.
Instructions
[REQUIRES BAOZI_LIVE=1] Build unsigned transaction to create a Lab (community) market. Validates against v7.2 rules. IMPORTANT: You MUST provide market_type and the corresponding timing field (event_time for Type A, measurement_start for Type B). Without these, creation will be BLOCKED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | Market question (max 200 chars) | |
| event_time | No | ISO 8601 event time — REQUIRED for Type A. Betting must close 24h+ before this. | |
| invite_hash | No | Optional 64-char hex for invite links | |
| market_type | Yes | REQUIRED: "event" (Type A — outcome at scheduled moment) or "measurement" (Type B — data over period) | |
| closing_time | Yes | ISO 8601 when betting closes | |
| creator_wallet | Yes | Creator wallet public key | |
| resolution_time | No | ISO 8601 when market can be resolved (optional) | |
| measurement_start | No | ISO 8601 measurement start — REQUIRED for Type B. Betting must close BEFORE this. |