account_info

Parameters

Field

Type

Description

account

String

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

ledger_hash

String

(Optional) A 20-byte hex string for the ledger version to use. (See Specifying Ledgers)

ledger_index

String or Unsigned Integer

(Optional) The ledger index of the ledger to use, or a shortcut string to choose a ledger automatically. (See Specifying Ledgers)

queue

Boolean

(Optional) If true, and the FeeEscalation amendment is enabled, also returns stats about queued transactions associated with this account. Can only be used when querying for the data from the current open ledger

signer_lists

Boolean

(Optional) If true, and the MultiSign amendment is enabled, also returns any SignerList objects associated with this account.

strict

Boolean

(Optional) If true, then the account field only accepts a public key or XRP Ledger address. Otherwise, account can be a secret or passphrase (not recommended). The default is false.

Returns

Information about an account

Example

//Request
curl -H 'Content-Type: application/json' -d '{"method":"account_info","params":[{"account":"r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59","strict":true,"ledger_index":"current","queue":true}]}' http://<your-app-id>.ankr.com
//Response
{
"id": 2,
"result": {
"account_data": {
"Account": "r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59",
"Balance": "13315612685",
"Flags": 0,
"LedgerEntryType": "AccountRoot",
"OwnerCount": 17,
"PreviousTxnID": "D2FA1C28EF87E53029327AA832C378674B3ACA0551CF9EA1F65BB8CA34913FAB",
"PreviousTxnLgrSeq": 55180009,
"Sequence": 1406,
"index": "4F83A2CF7E70F77F79A307E6A472BFC2585B806A70833CCD1C26105BAE0D6E05"
},
"ledger_current_index": 60228204,
"queue_data": {
"txn_count": 0
},
"validated": false
},
"status": "success",
"type": "response"
}