Root Request Builder
Builds requests for the root endpoint.
The root endpoint provides information about the Horizon server and the Stellar network it's connected to, including version information, protocol versions, and network passphrase.
Example usage:
val server = HorizonServer("https://horizon.stellar.org")
val rootInfo = server.root().execute()
println("Network: ${rootInfo.networkPassphrase}")
println("Horizon version: ${rootInfo.horizonVersion}")Parameters
The HTTP client to use for requests
The base URI of the Horizon server
Constructors
Functions
Sets the cursor parameter on the request. A cursor is a value that points to a specific location in a collection of resources. The cursor attribute itself is an opaque value meaning that users should not try to parse it.
Executes the request to get root endpoint information.
Sets the limit parameter on the request. It defines maximum number of records to return. For range and default values check documentation of the endpoint requested.
Sets the order parameter on the request.
Creates a Server-Sent Events (SSE) stream for this request. The stream will automatically reconnect on connection loss and resume from the last received event.