After a market resolves, burn your winning outcome tokens to receive USDC at a 1:1 rate.
Request body
The Solana wallet public key (base58-encoded).
The resolved market UUID.
Number of winning tokens to redeem (positive integer string, raw units).
Response
Base64-encoded unsigned VersionedTransaction. Sign and submit to Solana.
Human-readable description.
Winning outcome: yes or no.
curl -X POST https://api.pmx.trade/v2/clob/account/redeem \
-H "Content-Type: application/json" \
-d '{
"pubkey": "7xKXabc123...",
"marketId": "550e8400-...",
"amount": "50000000"
}'
{
"transaction": "AQAAAAAAA...base64...",
"message": "Redeem 50000000 winning yes tokens for collateral",
"market": {
"id": "550e8400-...",
"outcome": "yes"
}
}
The market must be resolved before redemption. You’ll receive 400 MARKET_NOT_RESOLVED if the market is still active.