Overview
Kuest provides a comprehensive market creation workflow in the admin panel that guides you through creating prediction markets with AI-powered validation and on-chain deployment.Creating Markets
Access the Market Creator
Navigate to the admin panel and access the market creation interface:Only authorized wallet addresses configured in
ADMIN_WALLETS can access the market creation panel.Market Creation Workflow
The creation process consists of 5 steps:Event Configuration
Configure the basic event details:Required Fields:The slug is automatically enhanced with a creator identifier (last 3 characters of your wallet address) to ensure uniqueness.
- Event Title: Clear, descriptive market question
- Event Slug: URL-friendly identifier (auto-generated from title)
- End Date: When the market closes for trading
- Event Image: Visual representation (PNG, JPG, WebP, or SVG)
- Main Category: Primary classification (e.g., Politics, Sports, Crypto)
- Sub Categories: At least 4 tags for better discoverability
Market Structure
Choose your market type:
Binary Markets
Simple Yes/No questions with two outcomes.Configuration:- Market question
- Outcome labels (default: “Yes” / “No”)
- Single market per event
Multi-Market Events
Multi-Multiple: Users can bet on multiple options (e.g., “Which teams will reach the finals?”)Multi-Unique: Users bet on a single winner (e.g., “Who will win the 2028 election?”)Each option requires:- Question: Specific prediction for this option
- Title: Full descriptive name
- Short Name: Abbreviated display name
- Slug: URL identifier
- Outcome labels (Yes/No by default)
- Optional image
Resolution Configuration
Define how the market will be resolved:Resolution Source (Optional)
- URL to authoritative source for outcome verification
- Must be a valid URL format
- Example:
https://www.coinmarketcap.com/currencies/bitcoin/
- Clear, deterministic criteria for resolution
- Minimum 60 characters
- Should leave no room for ambiguity
AI-Powered Rules Generation
Click “Generate with AI” to automatically create resolution rules based on your market configuration.Pre-Sign Validation
Before deploying to the blockchain, the system runs comprehensive checks:POL Gas CheckIssues can be bypassed individually if needed, but this is not recommended for production markets.
Funding Checks
USDC Balance Check- Verifies your wallet has sufficient USDC for the reward pool
- Default requirement: 5 USDC per market
- Configured via market context settings
- Ensures sufficient POL for transaction fees
- Estimated gas: ~700,000 units for initialization
- Uses Polygon mainnet or Amoy testnet
Authorization Checks
Allowed Creator Check- Confirms your wallet is in the allowed creator list
- Configured in General Settings → Market Creators
- Verifies the event slug doesn’t exist in the database
- Prevents duplicate market creation
Content Validation
OpenRouter Status- Confirms API key is configured and active
- Validates English language content
- Checks deterministic resolution rules
- Verifies all mandatory fields are complete
- Confirms date coherence
- Validates resolution source format
- Checks market structure consistency
Sign & Deploy
Final step: Sign transactions and deploy to blockchain.
Deployment Process
EIP-712 Signature
Sign the market creation authorization message:This signature is valid for a limited time (typically 15 minutes).
Transaction Execution
The system prepares and executes multiple transactions:
- USDC Approval: Approve reward amount for the adapter contract
- Market Initialization: Deploy the market on-chain
Transaction Monitoring
Each transaction shows:- Status indicator (pending/confirming/success/error)
- Transaction description
- Block explorer link (Polygon PolygonScan)
- Market identifier
Market Templates
Binary Yes/No Market
Multi-Outcome Election
Draft Persistence
The market creation form automatically saves your progress to browser localStorage:Best Practices
Write Clear Questions
Use simple, unambiguous language. Avoid jargon unless targeting a specific audience.
Set Realistic End Dates
Ensure sufficient time for trading activity and for the outcome to be determinable.
Define Deterministic Rules
Resolution rules should be objective and verifiable from public sources.
Test on Amoy First
Use the Polygon Amoy testnet to practice market creation before deploying to mainnet.
Troubleshooting
Slug Already Exists
Solution: Click the “Regenerate Slug” button or manually edit the slug field. The system appends a timestamp-based seed for uniqueness.Insufficient USDC Balance
Solution: Bridge USDC to Polygon using the built-in swap interface or an external bridge like LI.FI.AI Content Check Fails
Solution:- Review the specific errors listed
- Edit your market content to address the issues
- Re-run the check
- If necessary, bypass individual checks (not recommended for production)
Transaction Fails
Solution:- Check that you have sufficient POL for gas
- Verify the transaction on PolygonScan for specific error messages
- If using a custom wallet, ensure it properly handles EIP-712 signatures
- Try increasing gas settings in your wallet
Related Resources
Market Resolution
Learn how markets are resolved using UMA protocol
Admin Panel
Explore all admin panel features
API Reference
Programmatic market creation API
Monitoring
Track market creation success and errors