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
  • Parameters
  • Responses
  • Usage
  1. Xerial APIs
  2. Wallet API
  3. Wallet Management

Get Supported ERC20 Tokens Balances

The "Get Supported ERC20 Tokens Balances" endpoint allows you to retrieve the balances of supported ERC20 tokens associated with a specific wallet address on the Polygon Network.

Overview

Endpoint

  • Method: GET

  • URL: /wallet/{address}/{chain}/tokens

Parameters

  • address: (Path Parameter): Wallet address (string).

  • chain: (Path Parameter): Blockchain (string). Available values: polygon.

Responses

Success (Code 200)

{
  "usdc": "150",
  "usdt": "350"
}
  • Media Type: application/json

  • Example Value: An object containing the balances of supported ERC20 tokens.

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. Send a GET request to the /api/wallet/{address}/{chain}/tokens endpoint to retrieve the balances of supported ERC20 tokens.

  2. Handle the response accordingly based on success or internal server error.

Note: Ensure the wallet address and blockchain chain are valid.

PreviousGet Chain Native Currency BalanceNextGet Project Inventory

Last updated 1 year ago

â˜„ī¸
đŸ›