Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 1.04 KB

AccountStakersQuery.md

File metadata and controls

56 lines (39 loc) · 1.04 KB

AccountStakersQuery

class AccountStakersQuery extends Query < ProxyStaker[] >

Get all the accounts that are proxy staking to this account. For each of them, give the amount currently staked. This is not yet implemented, but will be in a future version of the API.

** Java **

new AccountStakersQuery()
    .setAccountId(operatorId)
    .setMaxQueryPayment(new Hbar(1))
    .execute(client);

** JavaScript **

await new AccountStakersQuery()
    .setAccountId(operatorId)
    .setMaxQueryPayment(new Hbar(1))
    .execute(client);

** Go **

_, err := NewAccountStakersQuery().
    SetAccountID(client.GetOperatorAccountID()).
    SetMaxQueryPayment(NewHbar(1)).
    Execute(client)
if err != nil {
    println(err.Error())
}

Constructor

constructor()

Properties

accountId: AccountId

The AccountId for which the records should be retrieved