preview_create_market
Preview Solana prediction market creation: validate parameters and show costs without building the transaction. For lab markets, include market_type and timing fields.
Instructions
Preview market creation - validates params and shows costs WITHOUT building transaction. Use before build_create_market_transaction. IMPORTANT: For Lab markets, you MUST provide market_type and the corresponding timing field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Market layer (lab=community, private=invite-only) | |
| question | Yes | Market question (max 200 chars) | |
| event_time | No | ISO 8601 event time — REQUIRED for Type A markets | |
| market_type | Yes | REQUIRED for Lab: "event" (Type A) or "measurement" (Type B) | |
| closing_time | Yes | ISO 8601 when betting closes | |
| measurement_end | No | ISO 8601 measurement end (optional) | |
| resolution_time | No | ISO 8601 when market can be resolved (optional, auto-calculated) | |
| measurement_start | No | ISO 8601 measurement start — REQUIRED for Type B markets |