> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zbdpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# User Balance via SDK

> Retrieve user balance via SDK and manage it via dashboard

## Retrieving User Balance via SDK

Use the `GetBalance` SDK method to retrieve a user's current balance from your client application.

### Implementation

```csharp theme={null}
ZBDController.Instance.GetBalance(callback =>
{
  if (callback.success)
  {
    // User's balance in satoshis (not millisatoshis)
    Debug.Log(callback.balance);
  }
  else if (callback.maintenance)
  {
    // Platform is in maintenance mode
    Debug.Log("Balance is temporarily unavailable. Please try again later.");
  }
  else
  {
    Debug.LogError("Get balance error: " + callback.message);
  }
});
```

The balance represents the user's current rewards available for withdrawal.

<Note>
  The `maintenance` flag can return `true` at any point, including mid-session. When active, display a user-friendly message instead of the balance. See [Handling Maintenance Mode](/earn/sdk/integration#handling-maintenance-mode) for more details.
</Note>

***

## Managing Rewards Balance

To increase or decrease user rewards balance, use the dashboard: **[Manage Rewards Balance via Dashboard](/earn/sdk/manage-rewards-balance)**
