Xerial
  • Intro
    • ⚡Introduction
    • 🏁Getting Started
    • ℹ️Before We Start: Important
  • 👷Build
    • Build Your Account
    • Create Your Assets
    • Inventory
    • Marketplace
    • User Flow
    • Best Practices
      • Attribute Guide
        • Attribute Use Cases
  • ☄️Xerial APIs
    • 🗝️API Authorization
    • 🛅Wallet API
      • Getting Started
      • Custodial Wallets
        • Create User
        • Create Wallet
        • Get Wallets
      • Wallet Management
        • Get Chain Native Currency Balance
        • Get Supported ERC20 Tokens Balances
        • Get Project Inventory
      • Transaction Proccessing
        • Transfer Xerial NFT
        • Transfer Chain Native Currency
        • Transfer ERC20 Token
        • Primary Purchase Xerial NFT
        • Secondary Purchase
        • List Xerial NFT
        • Delist Xerial NFT
        • Execute Custom Transaction
      • Errors Handling
        • Authentication Errors
        • Wallet Management Errors
        • Transaction Proccessing Errors
    • 🛒Marketplace API
      • Get Listed NFTs
      • Get Community Listed Items
      • Get Collections
      • Get Project Data
    • 🖼️NFT API
      • NFT Drop
    • 🌐Xerial Global Wallets
      • Get User Wallet Info
      • Get Global Inventory
      • User Authorization
      • Logout
  • 🛠️Xerial SDK
    • Wallet SDK
  • 🏎️Gaming Toolkit
    • 🕹️Xerial Unity SDK Guide
      • ⬇️Installation
      • ⚙️Configuration
      • Xerial Services
        • Set Up Xerial Services
        • Service Managers
          • Session Manager
          • Wallet Manager
            • UserData Class
              • Account Class
              • Wallet Class
              • Creating UserData Class
          • Inventory Manager
            • NFTs
              • Metadata
              • Attributes
            • NFTInventory Class
            • Creating NFT Inventory
          • MarketPlace Manager
    • Unreal Engine SDKs
Powered by GitBook
On this page
  • Properties
  • Methods
  • Example
  1. Gaming Toolkit
  2. Xerial Unity SDK Guide
  3. Xerial Services
  4. Service Managers
  5. Wallet Manager
  6. UserData Class

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

using System;
namespace Xerial
{
    [Serializable]
    public class Wallet
    {
        public string user;
        public string address;
        public string smartAccount;
        public bool custodial;
        public int id; 
    }
}
PreviousAccount ClassNextCreating UserData Class

Last updated 1 year ago

🏎️
🕹️