execute

suspend fun execute(): RootResponse

Executes the request to get root endpoint information.

Return

RootResponse containing server and network information

Throws

All the exceptions below are subclasses of NetworkException

if the request fails due to a bad request (4xx)

if the request fails due to a bad response from the server (5xx)

if the request fails due to too many requests sent to the server

when Horizon returns a Timeout or connection timeout occurred

if the server returns an unknown status code

when the request cannot be executed due to cancellation or connectivity problems