class
AccountStakersQuery
extendsQuery
<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.
new AccountStakersQuery()
.setAccountId(operatorId)
.setMaxQueryPayment(new Hbar(1))
.execute(client);
await new AccountStakersQuery()
.setAccountId(operatorId)
.setMaxQueryPayment(new Hbar(1))
.execute(client);
_, err := NewAccountStakersQuery().
SetAccountID(client.GetOperatorAccountID()).
SetMaxQueryPayment(NewHbar(1)).
Execute(client)
if err != nil {
println(err.Error())
}
accountId
: AccountId
The AccountId
for which the records should be retrieved