Ledger Methods
Get raw ledger state data
wss://honeycluster.io
rpc method: ledger_data

Returns the raw contents of the specified ledger. Results are paginated for large data sets.

Try it now
Response · ledger_data WS Response
{
  "result": {
    "ledger_hash": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
    "ledger_index": 89012345,
    "marker": "0000000000000000000000000000000000000000000000000000000000000000",
    "state": [
      {
        "data": "110061220000000024000000012500000003",
        "index": "00001A2969BE1FC85F1D7A55282FA2E6D95C71D2E4B9C0FDD47992D7D4BEAAAE",
        "type": "AccountRoot"
      }
    ]
  },
  "status": "success",
  "type": "response",
  "id": 1
}
Request Message
ledger_data WS Request
application/json
Get raw ledger state data
FieldTypeDescription
command
required
string
WebSocket command name
id
object
Client-supplied identifier to correlate requests with responses.
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.
binary
boolean
If true, return data in binary (hex) format instead of JSON.
limit
integer
Maximum number of results to return. Clio servers may return more than this.
marker
object
Opaque pagination marker from a previous response. Pass unchanged to fetch the next page.
type
string
Filter results by ledger entry type.
api_version
object
API version for the response format. Version 2 is the default for rippled 2.0+.
Example
Json
{
  "command": "ledger_data",
  "id": 1,
  "ledger_index": "validated",
  "limit": 5,
  "binary": false
}
Response Message
ledger_data WS Response
application/json
WebSocket response for ledger_data
FieldTypeDescription
result
object
status
enum<string>
Available
successerror
type
string
id
stringnumber
Echo of the client-provided correlation ID
Example
Json
{
  "result": {
    "ledger_hash": "4BC50C9B0D8515D3EAAE1E74B29A95804346C491EE1A95BF25E4AAB854A6A652",
    "ledger_index": 89012345,
    "marker": "0000000000000000000000000000000000000000000000000000000000000000",
    "state": [
      {
        "data": "110061220000000024000000012500000003",
        "index": "00001A2969BE1FC85F1D7A55282FA2E6D95C71D2E4B9C0FDD47992D7D4BEAAAE",
        "type": "AccountRoot"
      }
    ]
  },
  "status": "success",
  "type": "response",
  "id": 1
}