createMarket. This is a separate instruction for Solana stack safety.
Access
Creator — only the original market creator can call this.Accounts
| Account | Type | Description |
|---|---|---|
creator | Signer, mut | Market creator (pays mint rent) |
market | PDA, mut | ["market", market_id] |
yesMint | PDA, mut | ["yes_mint", market_id] — created by this instruction |
noMint | PDA, mut | ["no_mint", market_id] — created by this instruction |
tokenMint | Read-only | USDC mint (for decimals) |
tokenProgram | Program | SPL Token Program |
systemProgram | Program | System Program |
Arguments
The market ID returned from
createMarket.Example
On-Chain Log
Cost
- Rent: ~0.0015 SOL per mint (2 mints = ~0.003 SOL total)
- Transaction fee: ~0.000005 SOL
The mints use the same number of decimals as USDC (6). The mint authority is the Market PDA, meaning only the program can mint and burn tokens.
