Skip to main content

Net API (1.0.0)

Download OpenAPI specification:Download

URL: https://eosnetwork.com License: MIT

Nodeos Net API Specification. See developer documentation at https://docs.eosnetwork.com for information on enabling this plugin.

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": {
    }
}