GetLatestLedgerResponse

@Serializable
data class GetLatestLedgerResponse(val id: String, val protocolVersion: Int, val sequence: Long)

Response for JSON-RPC method getLatestLedger.

Returns metadata about the latest (most recent) ledger known to the Soroban RPC server. This is commonly used to check the current state of the network and ensure the server is properly synced.

See also

Constructors

Link copied to clipboard
constructor(id: String, protocolVersion: Int, sequence: Long)

Properties

Link copied to clipboard
val id: String

Hex-encoded hash identifier of the latest ledger. This is the unique cryptographic hash of the ledger header.

Link copied to clipboard

The Stellar protocol version in effect for this ledger.

Link copied to clipboard

The ledger sequence number. Ledgers are numbered sequentially starting from 1 at network genesis. This number increases by 1 with each new ledger (approximately every 5 seconds on the Stellar network).