CEX Integration Guide
  • Introduction
  • Circular's Public Blockchains
  • SDK Library
  • Networks
  • Local Calls
    • Retrieve Wallet
    • Retrieve Wallet Balance for a Specific Asset
    • Resolve Domain Name
    • Retrieve Asset Supply
    • Retrieve Blockchain Block Height
    • Retrieve a Single Block
    • Retrieve a Set of Blocks
    • Retrieve List of Blockchains
    • Retrieve Transaction by ID
    • Retrieve Transaction by Address
    • Retrieve Transaction by Date
  • Transactions
    • Transaction Composition
    • Calculating a Transaction Hash
    • Submitting a Transaction
    • Transaction Finality
  • Wallet Creation
    • Creating a Wallet
    • Wallet Generation (Read Warning)
  • Appendix
  • Node.js
    • Page 1
Powered by GitBook
On this page
  1. Local Calls

Retrieve Wallet Balance for a Specific Asset

var Blockchain = '0x714d2ac07a826b66ac56752eebd7c77b58d2ee842e523d913fd0ef06e6bdfcae';
var Address = '0x...';
var Asset = 'CIRX';

Circular.GetWalletBalance(Blockchain, // Blockchain address
                          Address,    // wallet address
                          Asset)
  .then(data => {
    // do something with the data in JSON format
  });

Output

{
  "Result": 200, // success
  "Response": {
    "Balance": 10000.00, // balance
    "Description": "CIRX" // asset description
  },
  "Node": "0x..." // answering node
}

PreviousRetrieve WalletNextResolve Domain Name

Last updated 7 months ago