Sending Rewards
Instructions for sending rewards to users with the ZBD Rewards SDK.
Reward Unit
In the ZBD Rewards SDK, rewards are sent as units. A unit is a configurable value determined by your ZBD Customer Success Manager and can represent different amounts, such as 1 satoshi or $0.10.
For example, if the game is configured so that 1 unit = 1 satoshi, sending 1 reward will send 1 satoshi. Conversely, if the game is set up so that 1 unit = $0.10
, sending 1 reward will send the equivalent of $0.10 in satoshis.
Sending Rewards
To send a reward to a user you can call:
However, for improved security it is recommended (almost required!) that you call the SendReward
API from your app’s/game’s server after validating actual gameplay.
This can be done using the users ZBD SDK ID which you can obtain after initialization has completed.
Without calling SendReward
from your backend server the security model downgrades to only relying on device attestation and the withdrawal limit based on time the device is active. More information on this can be found in the Security section.