Home

ledger_data

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the raw contents of a specified ledger, including all state data (accounts, trust lines, offers, etc.). This method provides low-level access to the ledger's state tree and is useful for deep analysis, data export, or building custom indexers.

Body

application/json

Returns the raw contents of a specified ledger, including all state data (accounts, trust lines, offers, etc.). This method provides low-level access to the ledger's state tree and is useful for deep analysis, data export, or building custom indexers.

JSON-RPC request payload.

methodstringledger_datarequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
ledger_hashstring

A 20-byte hex string identifying a specific ledger version to use for the request. Either ledger_hash or ledger_index must be specified.

ledger_indexstringvalidatedclosedcurrent

The ledger index of the ledger to use for the request.

  • "validated": The most recent validated ledger
  • "closed": The most recent closed ledger
  • "current": The current working ledger
binaryboolean

If true, return ledger objects as hex strings instead of JSON. This is more efficient for processing and storage but requires decoding.

limitinteger

(Optional) Limit the number of ledger objects to retrieve. The server is not required to honor this value.

markerstring

(Optional) Value from a previous paginated response. Resume retrieving data where that response left off.

Response

200OK

HTTP 200 response for ledger_data. The body contains either a successful result or a method-level JSON-RPC error.

400Bad Request

Bad Request. The request body is malformed or contains invalid JSON-RPC parameters.

401Unauthorized

Unauthorized: API key is present but rejected by the NOWNodes gateway.

405Method Not Allowed

Method Not Allowed. Returned by the NOWNodes gateway for malformed or unsupported gateway-level requests.

422Unprocessable Entity

Missing API key. The NOWNodes gateway returns plain text for this error.

500Internal Server Error

Internal Server Error. The gateway or node failed while processing the request.