Skip to main content
For finding out the current latest known ledger of this node. This is a subset of the ledger info from Horizon.

Params (0)

Result

(getLatestLedgerResponse)
string
Hash identifier of the latest ledger (as a hex-encoded string) known to Stellar RPC at the time it handled the request.
number
Stellar Core protocol version associated with the latest ledger.
number
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request.
string
The timestamp at which the latest ledger was closed.
string
The LedgerHeader structure for this ledger (base64-encoded string).
string
The LedgerCloseMeta union for this ledger (base64-encoded string).

Example

Example request to the getLatestLedger method. Request
Result

Using the Lab

You can check the latest known ledger on both Testnet and Mainnet using the getLatestLedger RPC method directly in the Stellar Laboratory. 👉 View Testnet Latest Ledger on the Lab Lab: getLatestLedger