Parameters
- startLedgerstring
The ledger sequence number to start fetching from
- paginationobject
The pagination object which contains the following fields:
- cursorstring
When provided it excludes the element with an ID matching the cursor and only includes elements appearing after it in the response
- limitinteger
The maximum number of records returned. By default, it is set to 100
- xdrFormatstring
Specifies whether XDR should be encoded as Base64 (default or 'base64') or JSON ('json')
Returns
- resultobject
The result object containing ledger details and pagination metadata. Returns null if no ledgers are found
- ledgersarray
An array of ledger objects
- hashstring
The hash of the ledger header which was included in the chain
- sequenceinteger
The sequence number of the ledger (also referred to as the block height)
- ledgerCloseTimestring
The timestamp at which the ledger was closed
- headerXdrstring
The LedgerHeader structure for this ledger (base64-encoded string)
- metadataXdrstring
The LedgerCloseMeta union for this ledger (base64-encoded string)
- latestLedgerinteger
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request
- latestLedgerCloseTimeinteger
The Unix timestamp of the close time of the latest ledger known to Stellar RPC at the time it handled the request
- oldestLedgerinteger
The sequence number of the oldest ledger ingested by Stellar RPC at the time it handled the request
- oldestLedgerCloseTimeinteger
The Unix timestamp of the close time of the oldest ledger ingested by Stellar RPC at the time it handled the request
- cursorstring
A token that can be included in a subsequent request to obtain the next page of results