/api/v1/accounts

Returns the account information for a given ID

Parameters

Returns

Name

Description

accounts

The list of information returned for all accounts

balance

The timestamp and account balance of the account

tokens

The tokens and their balances associated to the specified account

account

The ID of the account

expiry timestamp

The expiry date for the entity as set by a create or update transaction

auto renew period

The period in which the account autorenews

key

The key associated with the account

deleted

Whether the account was deleted or not (Boolean)

entity type

The type of Hedera service: account, file, or contract

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/accounts?account.id=0.0.1001
//Response
{
"accounts":[
{
"balance":{
"timestamp":"1604296800.106706008",
"balance":696858661816
},
"account":"0.0.1001",
"expiry_timestamp":null,
"auto_renew_period":null,
"key":null,
"deleted":false
}
],
"links":{
"next":null
}
}