REST APIActivity
Reveal activity boxes
Reveals the boxes the signed-in wallet earned in every match of a phase whose boxes are ready. A wallet earns boxes by trading on the activity's matches after it joins the activity. The boxes of a match stay hidden until the wallet reveals them, and only revealed boxes can be listed, counted and opened.
Returns one entry for each match this request revealed, with the wallet's trading in
that match and the boxes it earned. A match revealed earlier is left out, so a repeated
request returns an empty list. If a response is lost, read the boxes from
GET /v1/activities/{activityCode}/me/boxes.
This endpoint can have breaking changes without notice, and it can be removed after the activity ends.
ApiKeyAuthBearerAuthx-api-key<token>API key authentication via the x-api-key header.
AuthorizationBearer <JWT>Bearer authentication via the Authorization: Bearer <token> header.
activityCode*stringThe activity's code, for example lol-worlds or cs2-major.
application/json; charset=utf-8- body
phaseId*integerThe phase to reveal boxes in. The activity's current phase is the phaseId of
GET /v1/activities/{activityCode}/me/box-summary.
int32application/json; charset=utf-8- response
success*booleandata*curl -X POST 'https://api.predict.fun/v1/activities/string/matches/reveal-all' \ -H 'Content-Type: application/json; charset=utf-8' \ -d '{ "phaseId": 0}'{ "success": true, "data": { "performances": [ { "matchId": "string", "phaseId": 0, "revealedAt": "string", "metrics": { "preMatchTradeCount": 0, "inMatchTradeCount": 0, "preMatchVolumeUsd": "string", "inMatchVolumeUsd": "string" }, "boxCounts": [ { "boxTypeId": "string", "revealedCount": 0 } ] } ] }}Get activity box types GET
The box types of an activity that rewards trading with boxes, such as cs2-major, from the most common to the rarest. A box's type is its level. Every box carries a boxTypeId, and the type's name and rarity tell which level that is. The prize of a type is not listed. A wallet learns it by opening a box of that type. This endpoint can have breaking changes without notice, and it can be removed after the activity ends.
Get activity box summary GET
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.