Peer

Fetch the peer ID

Retrieves the local peer ID from the Nimiq RPC.

GET
/getPeerId
/getPeerId
curl -X GET "https://api.nimiqhub.com/getPeerId"

Peer ID retrieved successfully

{
  "peerId": {
    "data": "12D3KooWAAQwLHYzMQYBYuxM2SGKoVKsR7NHqcLxEs2CUiqks3nh",
    "metadata": null
  }
}