Sell YES or NO shares using X.402 token payment flow
X-PAYMENT header to receive USDC (returns 200)btc-100k-march)20000 for 20,000 tokens)YES or NOsendTo address:
X-PAYMENT header must contain a base64-encoded JSON object:
| Field | Type | Description |
|---|---|---|
x402Version | number | Protocol version (use 1) |
network | string | Network identifier (e.g., solana-mainnet) |
txHash | string | Your token transfer transaction signature |
tokenAmount | number | Token amount transferred (human-readable) |
sender | string | Your wallet address (must match wallet in body) |
recipient | string | Platform wallet from quote response |
tokenMint | string | Token mint address from quote response |
quoteIssuedAt | string | ISO 8601 timestamp from quote response |
targetPrice = 0.0005: