class
AccountRecordsQuery
extendsQuery
<TransactionRecord[]
>
Request records of all transactions for which the given account was the effective payer in the last 3 minutes of consensus time and ledger.keepRecordsInState=true was true during handleTransaction.
var records = new AccountRecordsQuery()
.setNodeAccountIds(Collections.singletonList(response.nodeId))
.setAccountId(accountId)
.execute(client);
const records = await new AccountRecordsQuery()
.setNodeAccountIds([response.nodeId])
.setAccountId(operatorId)
.execute(client);
recordsQuery, err := NewAccountRecordsQuery().
SetNodeAccountIDs([]AccountID{resp.NodeID}).
SetAccountID(client.GetOperatorAccountID()).
SetMaxQueryPayment(NewHbar(1)).
Execute(client)
if err != nil {
println(err.Error())
}
accountId
: AccountId
The account ID for which the records should be retrieved