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

# PlaytoliaWallet

> Virtual currency balances and wallet management

### Methods

| Method                               | Parameters | Returns            | Notes |
| ------------------------------------ | ---------- | ------------------ | ----- |
| `GetWallets()`                       | —          | `List<WalletItem>` |       |
| `GetWalletForCurrencyWithCode(code)` | `string`   | `WalletItem?`      |       |
| `GetWalletForCurrencyWithId(id)`     | `string`   | `WalletItem?`      |       |
| `GetWallet(currency)`                | `Currency` | `WalletItem?`      |       |
| `GetCurrencies()`                    | —          | `List<Currency>`   |       |
| `GetCurrencyByCode(code)`            | `string`   | `Currency?`        |       |
| `GetCurrencyById(id)`                | `string`   | `Currency?`        |       |
| `Refresh()`                          | —          | `void`             |       |
| `AddListener(listener)`              | `Action`   | `void`             |       |
| `RemoveListener(listener)`           | `Action`   | `void`             |       |

### WalletItem

| Field      | Type       | Notes                          |
| ---------- | ---------- | ------------------------------ |
| `Id`       | `string`   |                                |
| `Balance`  | `string`   | String to support large values |
| `Currency` | `Currency` |                                |

### Currency

| Field  | Type     | Notes         |
| ------ | -------- | ------------- |
| `Id`   | `string` |               |
| `Name` | `string` |               |
| `Code` | `string` | e.g. `"GOLD"` |
