node

Trust a peering node

Changed on
post/v1/node/peers/trusted

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /v1/node/peers/trusted
  • Auth
    API key in header Authorization

Request body

namestring string required
peeringURLstring string required

The peering URL of the peer

publicKeystring string required

The peers public key encoded in Hex

Example request

{
  "peeringURL": "localhost:4000",
  "name": "name",
  "publicKey": 0
}

Response

Peer was successfully trusted

Changes