Skip to content

"strict" account identifiers

Elliot Lee edited this page Mar 29, 2020 · 1 revision

Background

The account_info command supports multiple types of account identifiers:

account String A unique identifier for the account, most commonly the account's Address.

strict Boolean (Optional, defaults to False) If set to True, then the account field only accepts a public key or XRP Ledger address.

https://xrpl.org/account_info.html

Other identifiers

  • The seed
  • The public key in hex
  • Possibly others

We don't remember the whole list of things that are allowed if strict is set to false. One of the very early decisions made was to list only the preferred formats with the hope that we could deprecate and remove all the non-preferred formats. (The main use for many of the variations was the old test suite.)