Skip to main content

getLatestLedger RPC Method

Returns the current latest known ledger of the node.

Updated on
Feb 21, 2024

Parameters

This method does not accept any parameters

Returns

result
object

The result object which contains the following fields:

id
string

The hash of the latest ledger encoded in hexadecimal format

protocolVersion
integer

The protocol version associated with the latest ledger

sequence
integer

The sequence number of the latest ledger

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free