get balances

API details

Retrieves your wallet's current balance using the HIN. The HIN parameter is required to uniquely identify your wallet. Note: Assets with a balance of 0 will not be returned.

Get wallet balances

get
Query parameters
HINstringOptional
AssetIdstringOptional
Responses
200
OK
get
GET /v1/wallet/balances HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
  "code": 1,
  "message": "text",
  "data": {
    "ANY_ADDITIONAL_PROPERTY": "text"
  }
}

Code example

import { hibitClient } from '@delandlabs/hibit-sdk';

const options = {
  network: HibitNetwork.Testnet,
  hin: 10000n
};
hibitClient.setOptions(options);

const balances = await hibitClient.getWalletBalances({
  hin: options.hin
});

SDK

Source code https://github.com/Deland-Labs/hibit-sdk

References

What is HIN?

How to Obtain your HIN and Proxy Key?

Last updated