class
AccountInfoQuery
extendsQuery
<AccountInfo
>
Get all the information about an account, including the balance. This does not get the list of account records.
var info = new AccountInfoQuery()
.setAccountId(accountId)
.setNodeAccountIds(Collections.singletonList(response.nodeId))
.execute(client);
const info = await new AccountInfoQuery()
.setNodeAccountIds([response.nodeId])
.setAccountId(account)
.execute(client);
info, err := NewAccountInfoQuery().
SetAccountID(accountID).
SetNodeAccountIDs([]AccountID{resp.NodeID}).
Execute(client)
if err != nil {
println(err.Error())
}
accountId
: AccountId
The account ID for which information is requested