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.
Query parameters
HINstringOptional
AssetIdstringOptional
Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
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
Last updated