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
  • Overview
  • Responses
  • Usage
  1. Xerial APIs
  2. Xerial Global Wallets

Get User Wallet Info

The "Get Wallet info" endpoint provides information about the authenticated user and their associated wallets. Use this endpoint to retrieve user details and wallet information.

Overview

Endpoint

  • Method: GET

  • URL: /user

Header

  • Field: Authorization

  • Value: Bearer + (Access token)

Responses

Success (Code 200)

{
  "user": {
    "identifier": "fake@example.com", 
     "id": "5ebac534954b54139806c112",
          },
  "wallets": [
    {
      "id": "656ab9db6a378b91ab1871be",
      "address": "0x8e9DD3c1Db3254d968967CbC367542C343273629",
      "smartAccount": "0x8e9DD3c1Db3254d968967CbC367542C343273629",
      "custodial": true,
      "user": "5ebac534954b54139806c112"
      "type":"evm"
    }
  ]
}
  • user: User information.

    • id: User ID.

    • identifier: User's email address.

  • wallets: Array of user wallets.

    • id: Wallet ID.

    • address: Wallet address.

    • custodial: Indicates whether the wallet is custodial (true/false).

    • user: User ID associated with the wallet.

    • smartAccount: Smart Account address for account abstraction and paymaster.

  • Media Type: application/json

  • Example Value: An object containing the all information about the user.

Unauthorized (Code 401)

{
  "code": 401,
  "message": "Please Authenticate"
}
  • Media Type: application/json

  • Example Value: An error response indicating unauthorized access.

Internal Server Error (Code 500)

{
  "error": "Internal Server Error"
}
  • Media Type: application/json

  • Example Value: An error response indicating an internal server error.

Usage

  1. Once connected to the Xerial server use the given access token to request the User account and Wallet information.

  2. Send a GET request to the /api/user endpoint to retrieve user information and associated wallets.

  3. Handle the response accordingly based on success, unauthorized access or internal server error.

Note: Ensure the user is authenticated before making the request.

PreviousXerial Global WalletsNextGet Global Inventory

Last updated 1 year ago

☄️
🌐