Skip to main content

Net API (1.0.0)

Download OpenAPI specification:Download

URL: https://eos.io License: MIT

connections

Returns an array of all peer connection statuses.

Request Body schema: application/json
object

Responses

Request samples

Content type
application/json
{ }

Response samples

Content type
application/json
[
  • {
    }
]

connect

Initiate a connection to a specified peer.

Request Body schema: application/json
endpoint
required
string

the endpoint to connect to expressed as either IP address or URL

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string"
}

Response samples

Content type
application/json
"string"

disconnect

Initiate disconnection from a specified peer.

Request Body schema: application/json
endpoint
required
string

the endpoint to disconnect from, expressed as either IP address or URL

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string"
}

Response samples

Content type
application/json
"string"

status

Retrieves the connection status for a specified peer.

Request Body schema: application/json
endpoint
required
string

the endpoint to get the status for, to expressed as either IP address or URL

Responses

Request samples

Content type
application/json
{
  • "endpoint": "string"
}

Response samples

Content type
application/json
{
  • "peer": "string",
  • "connecting": true,
  • "syncing": true,
  • "last_handshake": {
    }
}