Skip to main content
POST
/
v2
/
claim-all-fees
curl -X POST https://api.pmx.trade/v2/claim-all-fees \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "7xKXabc123..."
  }'
{
  "success": true,
  "data": {
    "transactions": [
      {
        "marketId": 5,
        "feesAccruedHuman": 2.50,
        "transaction": "AQAAAAAAA...base64..."
      },
      {
        "marketId": 12,
        "feesAccruedHuman": 0.75,
        "transaction": "BQAAAAAAA...base64..."
      }
    ],
    "skipped": [
      { "marketId": 3, "reason": "no_fees" },
      { "marketId": 7, "reason": "broken_mints" }
    ],
    "message": "2 claim-fees transaction(s) to sign. 2 skipped."
  }
}
Lists all markets where the given wallet is the creator, checks for accrued fees, and builds claim transactions for each market that has unclaimed fees. Returns all transactions in a single response.

Request body

wallet
string
required
Solana wallet address of the market creator.

Response

success
boolean
data
object
curl -X POST https://api.pmx.trade/v2/claim-all-fees \
  -H "Content-Type: application/json" \
  -d '{
    "wallet": "7xKXabc123..."
  }'
{
  "success": true,
  "data": {
    "transactions": [
      {
        "marketId": 5,
        "feesAccruedHuman": 2.50,
        "transaction": "AQAAAAAAA...base64..."
      },
      {
        "marketId": 12,
        "feesAccruedHuman": 0.75,
        "transaction": "BQAAAAAAA...base64..."
      }
    ],
    "skipped": [
      { "marketId": 3, "reason": "no_fees" },
      { "marketId": 7, "reason": "broken_mints" }
    ],
    "message": "2 claim-fees transaction(s) to sign. 2 skipped."
  }
}
This is the fastest way to collect all your creator fees. Instead of checking each market individually, this endpoint handles the filtering for you — only markets with creatorFeesAccrued > 0 will have transactions built.