Claims the prizes of an already opened lootbox.
This method can only be called after the lootbox has been opened using the
openLootbox
method.
The user ID of the user to claim the prizes for.
The transaction group ID of the reserved prizes (returned by
the openLootbox
method).
RequestError if the user does not exist (unknownUserError
), if the
lootbox does not exist (unknownLootboxError
), or if the lootbox is not open yet
(unknownLootboxError
).
Returns a list of unopened lootboxes for a user.
Use the openLootbox
method to open a lootbox and see the prizes.
In order to actually claim the prizes, use the claimPrizes
method.
The user ID of the user to get the lootboxes for.
RequestError if the user does not exist (unknownUserError
).
Opens a lootbox for a user to see the prizes.
Once opened, the prizes are reserved for the user. However, they are only available to the user after the prizes have been claimed. This allows a more fine-grained control of when the prizes are distributed.
The user ID of the user to open the lootbox for.
The transaction group ID of the lootbox to open
(returned by the getLootboxes
method).
The transaction number of the lootbox to open (returned by the
getLootboxes
method).
RequestError if the user does not exist (unknownUserError
), if the
lootbox does not exist (unknownLootboxError
), or if the lootbox is already open
(alreadyOpenedLootboxError
).
This class allows you to get the unopened lootboxes of users and to open lootboxes and claim prizes.
To get the obtained prizes of a user, you can use the
getObtainedProducts
method in the marketplace module.