Installation and usage of the platform
REST API: blockchain peers¶
A group of peers
methods is provided to work with blockchain peer nodes:
POST /peers/connect¶
The method is designed to connect a new participant node to your node.
Query example:
Response example:
GET /peers/connected¶
The method returns a list of connected nodes.
Response example:
GET /peers/all¶
The method returns a list of all known nodes.
Response example:
GET /peers/suspended¶
The method returns a list of suspended nodes.
Response example:
POST /peers/identity¶
The method returns the public key of the node to which your node is connected for confidential data transfer.
The following parameters are passed in the request:
address
- blockchain address that corresponds to theprivacy.owner-address
parameter in the node configuration file;signature
- digital signature from the value of theaddress
field.
Query example:
The method response contains the publicKey
parameter - the public key of the node associated with the privacy.owner-address
parameter in its configuration file. If the handshakes check mode is disabled, the publicKey parameter is not shown.
Response example:
GET /peers/hostname/{address}¶
The method receives the blockchain address (owner-address) and, if there is such an address among the peers, the method returns the corresponding hostname and IP address of the node.
Response example:
GET /peers/allowedNodes¶
Obtaining the current list of allowed network members at the time of the request.