Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 970 Bytes

AccountInfoQuery.md

File metadata and controls

52 lines (37 loc) · 970 Bytes

class AccountInfoQuery extends Query < AccountInfo >

Get all the information about an account, including the balance. This does not get the list of account records.

** Java **

var info = new AccountInfoQuery()
    .setAccountId(accountId)
    .setNodeAccountIds(Collections.singletonList(response.nodeId))
    .execute(client);

** JavaScript **

const info = await new AccountInfoQuery()
    .setNodeAccountIds([response.nodeId])
    .setAccountId(account)
    .execute(client);

** Go **

info, err := NewAccountInfoQuery().
    SetAccountID(accountID).
    SetNodeAccountIDs([]AccountID{resp.NodeID}).
	Execute(client)
if err != nil {
    println(err.Error())
}

Constructor

constructor()

Properties

accountId: AccountId

The account ID for which information is requested