api/v1/balances

Returns account balance info

Parameters

Returns

Name

Description

timestamp

The seconds.nanoseconds of the timestamp at which the list of balances for each account are returned

balances

List of balances for each account

account

The ID of the account

balance

The balance of the account

tokens

The tokens that are associated to this account

tokens.token_id

The ID of the token associated to this account

tokens.balance

The token balance for the specified token associated to this account

links.next

Hyperlink to the next page of results

Example

//Request
curl -H "Content-Type: application/json" http://<your-app-id>.ankr.com/api/v1/balances?account.id=0.0.1000
//Response
{
"timestamp":"1604296800.106706008",
"balances":[
{
"account":"0.0.1000",
"balance":0
}
],
"links":{
"next":null
}
}