Getting the balance
api/v1
Path Parameter
Parameter
Type
Required
Description
address
string
Yes
A Hycon wallet address
Response - 200 OK, application/json
Parameter
Type
Description
balance
string
The balance in HYC of the address
Response Error Table
Status
Error
Message
400
INVALID_ADDRESS
invalid address
404
NOT_FOUND
the resource cannot be found / currently unavailable
GET/api/v1/wallet/{address}/balance
Example request
1
$ curl -X GET http://localhost:2442/api/v1/wallet/H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT/balance \
2
-H 'Content-Type: application/json;charset=utf-8'
Copied!
Response (Success)
1
{ "balance": "76722.558742064" }
Copied!
Last modified 3mo ago
Copy link