REST APIActivity

Get activity box summary

GET
/activities/{activityCode}/me/box-summary

The signed-in wallet's revealed boxes in the activity's current phase, counted by box type, with the rewards of the boxes it has opened. canOpen tells whether the wallet can open boxes yet.

This endpoint can have breaking changes without notice, and it can be removed after the activity ends.

Authorization

ApiKeyAuthBearerAuth
headerx-api-key<token>

API key authentication via the x-api-key header.

headerAuthorizationBearer <JWT>

Bearer authentication via the Authorization: Bearer <token> header.

Path Parameters

activityCode*string

The activity's code, for example lol-worlds or cs2-major.

Response Body

application/json; charset=utf-8
  1. response
success*boolean
data*

The signed-in wallet's boxes in an activity's current phase.

Example Request
curl -X GET 'https://api.predict.fun/v1/activities/string/me/box-summary'
Example Response
{  "success": true,  "data": {    "phaseId": 0,    "canOpen": true,    "boxCounts": [      {        "boxTypeId": "string",        "revealedCount": 0,        "openedCount": 0,        "creditedCount": 0,        "prizeType": "USDT",        "rewardPerBox": {          "rewardType": "TOKEN",          "currencyId": 0,          "symbol": "string",          "decimals": 0,          "amount": "string"        }      }    ],    "openedRewards": [      {        "rewardType": "TOKEN",        "currencyId": 0,        "symbol": "string",        "decimals": 0,        "amount": "string"      }    ],    "creditedRewards": [      {        "rewardType": "TOKEN",        "currencyId": 0,        "symbol": "string",        "decimals": 0,        "amount": "string"      }    ]  }}