wss://honeycluster.ioaccount_infoRetrieves information about an account, its activity, and its XRP balance. This is one of the most commonly used methods.
{
"result": {
"account_data": {
"Account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"Balance": "10234567890",
"Flags": 0,
"LedgerEntryType": "AccountRoot",
"OwnerCount": 3,
"PreviousTxnID": "E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7",
"PreviousTxnLgrSeq": 89012340,
"Sequence": 42
},
"ledger_index": 89012345,
"validated": true
},
"status": "success",
"type": "response",
"id": 1
}| Field | Type | Description |
|---|---|---|
commandrequired | string | WebSocket command name |
id | object | Client-supplied identifier to correlate requests with responses. |
account | string | The account to retrieve info for. |
ledger_index | object | A ledger index (sequence number) or shortcut string identifying which ledger to use. |
ledger_hash | string | 256-bit hex hash identifying a specific ledger version. |
queue | boolean | If true, include information about queued transactions sent by this account. |
signer_lists | boolean | If true, include the account's SignerList object(s) in the response. |
strict | boolean | If true, only accept an account address in the proper base58 format. |
api_version | object | API version for the response format. Version 2 is the default for rippled 2.0+. |
{
"command": "account_info",
"id": 1,
"account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"ledger_index": "validated",
"queue": true,
"signer_lists": true
}| Field | Type | Description |
|---|---|---|
result | object | |
status | enum<string> | Available successerror |
type | string | |
id | stringnumber | Echo of the client-provided correlation ID |
{
"result": {
"account_data": {
"Account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn",
"Balance": "10234567890",
"Flags": 0,
"LedgerEntryType": "AccountRoot",
"OwnerCount": 3,
"PreviousTxnID": "E08D6E9754025BA2534A78707605E0601F03ACE063687A0CA1BDDACFCD1698C7",
"PreviousTxnLgrSeq": 89012340,
"Sequence": 42
},
"ledger_index": 89012345,
"validated": true
},
"status": "success",
"type": "response",
"id": 1
}