GetHealthResponse

@Serializable
data class GetHealthResponse(val status: String, val latestLedger: Long? = null, val oldestLedger: Long? = null, val ledgerRetentionWindow: Long? = null)

Response for JSON-RPC method getHealth.

General node health check endpoint. The RPC server will return a 200 OK response if the node is healthy, with additional metadata about the ledger state.

See also

Constructors

Link copied to clipboard
constructor(status: String, latestLedger: Long? = null, oldestLedger: Long? = null, ledgerRetentionWindow: Long? = null)

Properties

Link copied to clipboard

The latest ledger known to the node. May be null if the node hasn't synced any ledgers yet.

Link copied to clipboard

The ledger retention window configured for the node. Represents how many ledgers the node keeps in storage. May be null if not configured.

Link copied to clipboard

The oldest ledger stored by the node. May be null if the node hasn't synced any ledgers yet.

Link copied to clipboard

Health status. Expected to be "healthy" when the node is operational.