getLatestLedger

Fetches the latest ledger metadata.

Returns information about the most recent ledger including sequence number, hash, and protocol version. Useful for determining current network state.

Return

Latest ledger metadata

See also

Throws

If the RPC request fails