ledger_closed
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:
{ "id": 2, "command": "ledger_closed" }
This method accepts no parameters.
Response Format
An example of a successful response:
{ "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:
Field | Type | Description |
---|---|---|
ledger_hash | String | The unique Hash of this ledger version, in hexadecimal. |
ledger_index | Unsigned Integer | The ledger index of this ledger version. |
Possible Errors
- Any of the universal error types.