The DelphAI X402 API allows you to create prediction markets programmatically. Each API call costs 1 WLFI USD (World Liberty Financial USD) paid via the X402 protocol.
This endpoint requires a payment of 1 WLFI USD via X402 protocol for each call. The payment is handled automatically through the X402 SDK using ERC-2612 permit signatures.Payment Details:
{ "question": "Will Bitcoin reach $100k by end of 2024?", "description": "This market resolves to YES if Bitcoin (BTC) reaches $100,000 USD on any major exchange before December 31, 2024 23:59:59 UTC.", "possibleOutcomes": ["Yes", "No"], "resolutionTimestamp": 1735689599}
Each API call costs 1 WLFI USD paid via X402 protocol on BSC
The resolutionTimestamp must be in the future
A minimum of 2 possibleOutcomes is required
Markets are published on-chain and cannot be deleted
Payment is automatically verified before the market is created
The X402 protocol uses ERC-2612 permit signatures, which means users don’t need to make a separate token approval transaction. The payment is gasless from the user’s perspective.