fetch_balance
Fetches the balance/s for 1 or more addresses.
Header Parameters
x-cache-id string
Possible values: Value must match regular expression ^[a-z0-9]{32}$
An idempotent key for retrieving cached responses from the node
application/json
Request Body array required
List of addresses to fetch the balance from.
- Array [
- ]
string
Responses
- 200
- 400
Successful operation
application/json
Schema
Example (from schema)
Schema
id string
The ID of the call, which corresponds to the x-cache-id used in the header
status string
The status of the call, which will be one of either "Success", "Error", or "Pending"
reason string
The reason for the status of the call. Most useful to debug errors
route string
The endpoint route that was called
content object
total object
tokens number
items object
address_list object
{
"id": "45v340cd2f8c4782a5b058832565afb1",
"status": "Success",
"reason": "Balance successfully fetched",
"route": "fetch_balance",
"content": {
"total": {
"tokens": 5463669,
"items": {}
},
"address_list": {
"d6fa779a3de8b216c56375018375e490c7e2ce92918abce4caecf73b1f77c38f": [
{
"out_point": {
"t_hash": "g9182e1e2a55b0ef36f1183602d74e63",
"n": 0
},
"value": {
"Token": 5463669
}
}
]
}
}
}
Invalid input
application/json
Schema
Example (from schema)
Schema
id string
status string
reason string
route string
content string
{
"id": null,
"status": "Error",
"reason": "Bad Request",
"route": null,
"content": null
}
Loading...