Skip to main content
Use GetBalance to retrieve a player’s current rewards balance and withdrawal limit from your game client.
ZBDController.Instance.GetBalance(callback =>
{
  if (callback.success)
  {
    // Balance in satoshis (not millisatoshis)
    Debug.Log("Balance: " + callback.balance);
    // Withdrawal limit in satoshis (not millisatoshis)
    Debug.Log("Withdrawal limit: " + callback.withdrawalLimit);
  }
  else if (callback.maintenance)
  {
    // Platform is in maintenance mode — do not update the displayed balance
    Debug.Log("Balance temporarily unavailable.");
  }
  else
  {
    Debug.LogError("GetBalance failed: " + callback.message);
  }
});
GetBalance returns both values in a single call — the player’s accumulated rewards balance and their current daily withdrawal limit. Use this before sending rewards to avoid crediting more than the player can currently withdraw.
The maintenance flag can return true at any point, including mid-session. When active, do not update the displayed balance. See Error Handling for full maintenance mode guidance.