Params (0)
Result
(getLatestLedgerResponse)Hash identifier of the latest ledger (as a hex-encoded string) known to Stellar RPC at the time it handled the request.
The sequence number of the latest ledger known to Stellar RPC at the time it handled the request.
The LedgerHeader structure for this ledger (base64-encoded 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
