Last updated
Edit

ledger_closed

[Source]

The ledger_closed method returns the unique identifiers of the most recently closed ledger. (This ledger is not necessarily validated and immutable yet.)

Request Format

An example of the request format:

  1. WebSocket
  2. JSON-RPC
  3. Commandline
{
   "id": 2,
   "command": "ledger_closed"
}

Try it! >

This method accepts no parameters.

Response Format

An example of a successful response:

  1. WebSocket
  2. JSON-RPC
  3. Commandline
{
  "id": 1,
  "status": "success",
  "type": "response",
  "result": {
    "ledger_hash": "17ACB57A0F73B5160713E81FE72B2AC9F6064541004E272BD09F257D57C30C02",
    "ledger_index": 6643099
  }
}

The response follows the standard format, with a successful result containing the following fields:

FieldTypeDescription
ledger_hashStringThe unique Hash of this ledger version, in hexadecimal.
ledger_indexUnsigned IntegerThe ledger index of this ledger version.

Possible Errors