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

# Get Wallet Balance

> Get your wallet balance

## Overview

Returns your current wallet balance, including lifetime spending and deposit totals. Use this to check if you have sufficient funds before executing paid tools.

**Auth:** Requires authentication (JWT or API key).

## Response

<ResponseField name="balance_cents" type="integer">
  Current balance in cents (e.g. 1500 = \$15.00)
</ResponseField>

<ResponseField name="lifetime_spent_cents" type="integer">
  Total amount spent in cents
</ResponseField>

<ResponseField name="lifetime_deposited_cents" type="integer">
  Total amount deposited in cents
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.danubeai.com/v1/wallet/balance" \
    -H "danube-api-key: YOUR_API_KEY"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  with DanubeClient(api_key="dk_...") as client:
      balance = client.wallet.get_balance()
      print(f"Balance: ${balance.balance_cents / 100:.2f}")
  ```

  ```typescript TypeScript SDK theme={null}
  import { DanubeClient } from 'danube';

  const client = new DanubeClient({ apiKey: 'dk_...' });
  const balance = await client.wallet.getBalance();
  console.log(`Balance: $${(balance.balanceCents / 100).toFixed(2)}`);
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "balance_cents": 1500,
    "lifetime_spent_cents": 350,
    "lifetime_deposited_cents": 2000
  }
  ```
</ResponseExample>

## MCP Tool

This endpoint is also available as the `get_wallet_balance` MCP tool:

```python theme={null}
result = await mcp.call_tool("get_wallet_balance", {})
```
