> For the complete documentation index, see [llms.txt](https://xerial.gitbook.io/xerial-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xerial.gitbook.io/xerial-doc/gaming-toolkit/xerial-unity-sdk-guide/xerial-services/service-managers/wallet-manager/userdata-class/wallet-class.md).

# Wallet Class

The Wallet class represents a user's wallet retrieved from the Xerial services.

## Properties

* **user**: A string representing the user associated with the wallet.
* **address**: A string representing the wallet address.
* **smartAccount**: A string representing the smart account associated with the wallet (specific to the Polygon chain).
* **custodial**: A boolean indicating whether the wallet is custodial.
* **id**: An integer representing the ID of the wallet.

## Methods

* **Address**: A property that returns the appropriate wallet address based on the selected blockchain in the Xerial services.

### Example

```csharp
using System;
namespace Xerial
{
    [Serializable]
    public class Wallet
    {
        public string user;
        public string address;
        public string smartAccount;
        public bool custodial;
        public int id; 
    }
}
```
