Return the balance of HTR
GET/wallet/balance
Return the balance of HTR
Request
Query Parameters
token string
Token uid. Optional parameter to get the balance from a token different than HTR.
Header Parameters
x-wallet-id stringrequired
Defines the key of the wallet on which the request will be executed.
Responses
- 200
Balance of tokens available and locked. To get the total, you must sum them up.
- application/json
- Schema
- success
- wallet-not-ready
- no-wallet-id
- invalid-wallet-id
Schema
any
Success
{
"available": 2,
"locked": 0
}
Wallet is not ready yet
{
"success": false,
"message": "Wallet is not ready.",
"state": 1
}
No wallet id parameter
{
"success": false,
"message": "Parameter 'wallet-id' is required."
}
Wallet id parameter is invalid
{
"success": false,
"message": "Invalid wallet-id parameter."
}
Loading...