Skip to main content
POST
/
v2
/
clob
/
account
/
redeem
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"
  }
}
After a market resolves, burn your winning outcome tokens to receive USDC at a 1:1 rate.

Request body

pubkey
string
required
The Solana wallet public key (base58-encoded).
marketId
string
required
The resolved market UUID.
amount
string
required
Number of winning tokens to redeem (positive integer string, raw units).

Response

transaction
string
Base64-encoded unsigned VersionedTransaction. Sign and submit to Solana.
message
string
Human-readable description.
market
object
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.