RootResponse

@Serializable
data class RootResponse(val horizonVersion: String, val stellarCoreVersion: String, val ingestLatestLedger: Long? = null, val historyLatestLedger: Long, val historyLatestLedgerClosedAt: String, val historyElderLedger: Long, val coreLatestLedger: Long, val networkPassphrase: String, val currentProtocolVersion: Int, val supportedProtocolVersion: Int, val coreSupportedProtocolVersion: Int, val links: RootResponse.Links) : Response

Represents root endpoint response. This endpoint provides information about the Horizon server and the Stellar network it's connected to.

See also

Constructors

Link copied to clipboard
constructor(horizonVersion: String, stellarCoreVersion: String, ingestLatestLedger: Long? = null, historyLatestLedger: Long, historyLatestLedgerClosedAt: String, historyElderLedger: Long, coreLatestLedger: Long, networkPassphrase: String, currentProtocolVersion: Int, supportedProtocolVersion: Int, coreSupportedProtocolVersion: Int, links: RootResponse.Links)

Types

Link copied to clipboard
@Serializable
data class Links(val account: Link? = null, val accounts: Link? = null, val accountTransactions: Link? = null, val claimableBalances: Link? = null, val assets: Link? = null, val effects: Link? = null, val feeStats: Link? = null, val friendbot: Link? = null, val ledger: Link? = null, val ledgers: Link? = null, val liquidityPools: Link? = null, val offer: Link? = null, val offers: Link? = null, val operation: Link? = null, val operations: Link? = null, val orderBook: Link? = null, val payments: Link? = null, val self: Link? = null, val strictReceivePaths: Link? = null, val strictSendPaths: Link? = null, val tradeAggregations: Link? = null, val trades: Link? = null, val transaction: Link? = null, val transactions: Link? = null)

Links to related endpoints.

Properties

Link copied to clipboard
@SerialName(value = "core_latest_ledger")
val coreLatestLedger: Long

The latest ledger known by the connected Stellar Core

Link copied to clipboard
@SerialName(value = "core_supported_protocol_version")
val coreSupportedProtocolVersion: Int

The protocol version supported by the connected Stellar Core

Link copied to clipboard
@SerialName(value = "current_protocol_version")
val currentProtocolVersion: Int

The protocol version that the network currently supports

Link copied to clipboard
@SerialName(value = "history_elder_ledger")
val historyElderLedger: Long

The oldest ledger stored in Horizon's history database

Link copied to clipboard
@SerialName(value = "history_latest_ledger")
val historyLatestLedger: Long

The latest ledger stored in Horizon's history database

Link copied to clipboard
@SerialName(value = "history_latest_ledger_closed_at")
val historyLatestLedgerClosedAt: String

The timestamp when the history latest ledger was closed

Link copied to clipboard
@SerialName(value = "horizon_version")
val horizonVersion: String

The version of Horizon server

Link copied to clipboard
@SerialName(value = "ingest_latest_ledger")
val ingestLatestLedger: Long?

The latest ledger ingested by Horizon

Link copied to clipboard
@SerialName(value = "_links")
val links: RootResponse.Links

HAL links to other endpoints

Link copied to clipboard
@SerialName(value = "network_passphrase")
val networkPassphrase: String

The network passphrase for the network this Horizon instance is connected to

Link copied to clipboard
@SerialName(value = "core_version")
val stellarCoreVersion: String

The version of Stellar Core this Horizon instance is connected to

Link copied to clipboard
@SerialName(value = "supported_protocol_version")
val supportedProtocolVersion: Int

The protocol version supported by this Horizon instance