Skip to main content

Account roots represent the fundamental ledger entry for each XRP Ledger account, storing the account's XRP balance, sequence number, flags, and trust-line or escrow settings. This API lets you query these base-layer account properties for compliance checks, account verification, and understanding an account's ledger state beyond just its transaction history.

query MyQuery {
ripple(network: ripple) {
accountRoots(
account: {is: "rocwwPiFPgytt5Yhe3ctdZTnWw92Resy5"}
options: {limit: 10, desc: "prevLedgerSequence"}
) {
account {
address
annotation
}
transferRate
sequence
prevTxnId
prevLedgerSequence
prevBalance
ownerCount
operation
flags
domain
balance
}
}
}

Filtering Address

Fields

  • account
    • address
      • The address of the account.
    • annotation
      • A label that stores any additional information about the account.
  • transferRate
    • The transfer rate of the account.
  • sequence
    • The sequence number of the account. This is an increasing number that is used to track the number of transactions that have been applied to the account.
  • prevTxnId
    • The transaction ID of the previous transaction that modified the account.
  • prevLedgerSequence
    • The ledger sequence of the previous transaction that modified the account.
  • prevBalance
    • The balance of the account before the previous transaction was applied.
  • ownerCount
    • The number of owners of the account.
  • operation
    • The type of operation that modified the account.
  • flags
    • The flags of the account. These flags can be used to control the behavior of the account.
  • domain
    • The domain of the account. This is the domain that the account is associated with.
  • balance
    • The current balance of the account