Home

ledger

POST
https://xrp.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns information about a specific ledger version or the current working ledger. This method provides comprehensive details about the state of the ledger at a particular point in time.

Body

application/json

Returns information about a specific ledger version or the current working ledger. This method provides comprehensive details about the state of the ledger at a particular point in time.

JSON-RPC request payload.

methodstringledgerrequired

The JSON-RPC method name

paramsArray<object>required

Ordered JSON-RPC method parameters.

Show child attributes
ledger_hashstring

(Optional) A 20-byte hex string identifying a specific ledger version to use for the request.

ledger_indexstringvalidatedclosedcurrent

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

  • "validated": The most recent validated ledger (recommended for production use)
  • "closed": The most recent closed ledger
  • "current": The current working ledger (in-progress, subject to change)
accountsboolean

If true, include a list of all accounts in the ledger. This can generate a very large response and should be used with caution.

fullboolean

If true, include the entire ledger contents including all transactions and state data. This generates an extremely large response and is rarely needed.

transactionsboolean

If true, include a list of transaction IDs in the ledger. If expand is also true, include full transaction details instead of just IDs.

expandboolean

If true, expand transactions and other ledger objects to include full JSON content instead of just hashes or IDs.

owner_fundsboolean

If true, include an owner_funds field in Offer objects (if present). This field indicates how much the offer creator can afford to pay.

binaryboolean

If true, return ledger data as hex strings instead of JSON. This can be more efficient for some applications.

queueboolean

If true, include information about the current transaction queue. Only applicable when querying the current ledger.

Response

200OK

HTTP 200 response for ledger. 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.