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 thegetLatestLedger method.
Request
Using the Lab
You can check the latest known ledger on both Testnet and Mainnet using thegetLatestLedger RPC method directly in the Stellar Laboratory.
👉 View Testnet Latest Ledger on the Lab
