Get a ledger_index by its closing time.
GET /ledgers/ledger_index
Retrieve the last closed ledger by a given time.
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”-
Search for the last closed ledger by the specified date time.
-
Format: ‘1970-01-01T00:00:00Z’
-
Default is the current time. (last closed ledger)
Responses
Section titled “ Responses ”Success response
-
ledger_index
= The last closed ledger_index by the given time, or null if the ledger_index could not be found. -
closed
= The time this ledger was closed.
object
The last closed ledger_index by the given time, or null if the ledger_index could not be found.
The time this ledger was closed.
Query input malformed
object
Headers
Section titled “Headers ”Maximum number of requests in the rate limit window.
Number of remaining request in current rate limit window.
The seconds until the current rate limit window resets.
Too Many Requests
Headers
Section titled “Headers ”Maximum number of requests in the rate limit window.
Number of remaining request in current rate limit window.
The seconds until the current rate limit window resets.