Skip to main content

GetAccountLedgerEntry

Returns a specific ledger entry by ID for an account.

Request

GET /nxt?requestType=get-account-ledger-entry

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
ledgerIdstringLedger entry IDYes
includeTransactionbooleanInclude transaction detailsOptional
includeHoldingInfobooleanInclude holding metadataOptional

Response

{
"ledgerEntry": {
"ledgerId": "1234567890",
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"eventType": 1,
"changeQNT": "500000000",
"height": 250
}
}

Response Fields

FieldTypeDescription
ledgerEntryobjectLedger entry details

Error Codes

CodeDescription
3Unknown ledger entry

Example

curl "http://localhost:22024/nxt?requestType=get-account-ledger-entry&ledgerId=1234567890"