ledger_current
The ledger_current
method returns the unique identifiers of the current in-progress ledger. This command is mostly useful for testing, because the ledger returned is still in flux.
Request Format
An example of the request format:
The request contains no parameters.
Response Format
An example of a successful response:
The response follows the [standard format][], with a successful result containing the following field:
| Type | Description |
| Unsigned Integer - [Ledger Index][] | The ledger index of this ledger version. |
A ledger_hash
field is not provided, because the hash of the current ledger is constantly changing along with its contents.
Possible Errors
Any of the [universal error types][].
Last updated