sack-dollarClaim Winnings

Once a market is resolved, each winning share can be claimed for $1. If a market is canceled, all options are resolved evenly. For example, in a market with 2 options, each share can be claimed for $0.50. All winnings are automatically credited to your PredictBase account balance.


Endpoint

POST /claim-winnings-for-user

Full URL

https://api.predictbase.app/claim-winnings-for-user

Authentication

This endpoint requires authentication. You must include your API key in the request headers:

x-api-key: YOUR_API_KEY

Request Body

{
  "marketId": 12001,
  "user" : "0xd...",
  "option" : 0  
}

Field Notes

  • marketId The ID of the market you want to mint shares for.

  • user The user’s wallet address.

  • option The option index. You can retrieve the option index from our Read Markets APIs.


Response (Success)


⚠️ Failure Cases

  • Missing or invalid x-api-key

  • API key not authorized for the user

  • On-chain transaction failure

Last updated