Network

Network connections

get

List the running P2P connection.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json
incomingbooleanRequired
peer_idone ofRequired
stringOptional
or
remote_socket_portinteger · max: 65535Required
privatebooleanRequired
get
/network/connections

Network connections

get

Details about the current P2P connection to the given peer.

Authorizations
api-keystringRequired
Path parameters
peer_idstringRequired

A cryptographic node identity (Base58Check-encoded)

Responses
chevron-right
200

Valid response

application/json
incomingbooleanRequired
peer_idone ofRequired
stringOptional
or
remote_socket_portinteger · max: 65535Required
privatebooleanRequired
get
/network/connections/{peer_id}

Network greylist clear

get

DEPRECATED: Clear all greylists tables. This will unban all addresses and peers automatically greylisted by the system. Use DELETE /network/greylist instead

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json
objectOptional
get
/network/greylist/clear

Network greylist IPs

get

Returns an object that contains a list of IP and the field "not_reliable_since". If the field "not_reliable_since" is None then the list contains the currently greylisted IP addresses. If the field "not_reliable_since" Contains a date, this means that the greylist has been overflowed and it is no more possible to obtain the exact list of greylisted IPs. Since the greylist of IP addresses has been design to work whatever his size, there is no security issue related to this overflow. Reinitialize the ACL structure by calling "delete /network/greylist" to get back this list reliable.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json
not_reliable_sinceone of · nullableRequired
stringOptional
or
or
stringOptional

Decimal representation of 64 bit integers

get
/network/greylist/ips

Network greylist peers

get

List of the last greylisted peers.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json
stringOptional
or
get
/network/greylist/peers

Network log

get

Stream of all network events

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json

An event that may happen during maintenance of and other operations on the p2p connection pool. Typically, it includes connection errors, peer swaps, etc.

or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
or
get
/network/log

Network points

get

List the pool of known IP:port used for establishing P2P connections.

Authorizations
api-keystringRequired
Query parameters
filterstringOptional
Responses
chevron-right
200

Valid response

application/json
itemsone ofOptional
stringOptional
or
or
get
/network/points

Details about a given `IP:addr`

get

Details about a given IP:addr.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Responses
chevron-right
200

Valid response

application/json

Information about a peer point. Includes flags, state, and records about past events.

trustedbooleanRequired
greylisted_untilone ofOptional

A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.

stringOptional
or
or
stringOptional

Decimal representation of 64 bit integers

stateone ofRequired

The state a connection to a peer point can be in: requested (connection open from here), accepted (handshake), running (connection already established), disconnected (no connection).

or
or
or
p2p_peer_idone ofOptional
stringOptional
or
last_failed_connectionone ofOptional

A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.

stringOptional
or
or
stringOptional

Decimal representation of 64 bit integers

last_missone ofOptional

A timestamp as seen by the underlying, local computer: subsecond-level precision, epoch or rfc3339 based.

stringOptional
or
or
stringOptional

Decimal representation of 64 bit integers

expected_peer_idone ofOptional
stringOptional
or
get
/network/points/{point}

Check if a given address is blacklisted or greylisted

get

Check if a given address is blacklisted or greylisted. Port component is unused.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Responses
chevron-right
200

Valid response

application/json
booleanOptional
get
/network/points/{point}/banned

Monitor network events related to an `IP:addr`

get

Monitor network events related to an IP:addr.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Query parameters
monitorstringOptional
Responses
chevron-right
200

Valid response

application/json

Events happening during maintenance of and operations on a peer point pool (such as connections, disconnections, connection requests).

itemsone ofOptional
stringOptional
or
or
stringOptional

Decimal representation of 64 bit integers

or
or
or
or
or
or
or
get
/network/points/{point}/log

DEPRECATED Trust a given address permanently

get

DEPRECATED: Trust a given address permanently and remove it from the blacklist if present. Connections from this address can still be closed on authentication if the peer is greylisted. Use PATCH/network/point/<point_id> instead.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Responses
chevron-right
200

Valid response

application/json
objectOptional
get
/network/points/{point}/trust

DEPRECATED Remove an address from the blacklist

get

DEPRECATED: Remove an address from the blacklist. Use PATCH /network/point/<point_id> instead.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Responses
chevron-right
200

Valid response

application/json
objectOptional
get
/network/points/{point}/unban

DEPRECATED Remove an address from the whitelist

get

DEPRECATED: Remove an address from the whitelist. Use PATCH /network/point/<point_id> instead.

Authorizations
api-keystringRequired
Path parameters
pointstringRequired

A network point (ipv4:port or [ipv6]:port).

Responses
chevron-right
200

Valid response

application/json
objectOptional
get
/network/points/{point}/untrust

Node's peer id

get

Return the node's peer id

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json
stringOptional
or
get
/network/self

Global network bandwidth statistics in B/s

get

Global network bandwidth statistics in B/s.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json

Statistics about the p2p network.

total_sentstringRequired

Decimal representation of 64 bit integers

total_recvstringRequired

Decimal representation of 64 bit integers

current_inflowinteger · min: -1073741824 · max: 1073741823Required
current_outflowinteger · min: -1073741824 · max: 1073741823Required
get
/network/stat

Network protocol version

get

DEPRECATED: use version instead.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json

A version number for the network protocol (includes distributed DB version and p2p version)

chain_nameone ofRequired

A name for the distributed DB protocol

stringOptional
or
distributed_db_versioninteger · max: 65535Required

A version number for the distributed DB protocol

p2p_versioninteger · max: 65535Required

A version number for the p2p layer.

get
/network/version

Supported network protocol versions

get

DEPRECATED: use version instead.

Authorizations
api-keystringRequired
Responses
chevron-right
200

Valid response

application/json

A version number for the network protocol (includes distributed DB version and p2p version)

chain_nameone ofRequired

A name for the distributed DB protocol

stringOptional
or
distributed_db_versioninteger · max: 65535Required

A version number for the distributed DB protocol

p2p_versioninteger · max: 65535Required

A version number for the p2p layer.

get
/network/versions

Last updated