HealthResponse

@Serializable
data class HealthResponse(val databaseConnected: Boolean, val coreUp: Boolean, val coreSynced: Boolean) : Response

Represents health response received from the Horizon server.

The health endpoint provides information about the current operational status of the Horizon server. It returns three key indicators that determine whether the server is functioning properly:

  • Database connectivity

  • Stellar Core availability

  • Stellar Core synchronization status

The actual Horizon API returns:

{
"database_connected": true,
"core_up": true,
"core_synced": true
}

A server is considered healthy when all three indicators are true.

See also

Constructors

Link copied to clipboard
constructor(databaseConnected: Boolean, coreUp: Boolean, coreSynced: Boolean)

Properties

Link copied to clipboard
@SerialName(value = "core_synced")
val coreSynced: Boolean

Indicates whether the Stellar Core instance is synced with the network

Link copied to clipboard
@SerialName(value = "core_up")
val coreUp: Boolean

Indicates whether the Stellar Core instance is up and running

Link copied to clipboard
@SerialName(value = "database_connected")
val databaseConnected: Boolean

Indicates whether the Horizon database is connected

Link copied to clipboard

Returns true if the server is healthy (all systems operational).