/api/v0/id
Show IPFS node id info.
Arguments
arg[string]: Peer.ID of node to look up. Required: no.format[string]: Optional output format. Required: no.peerid-base[string]: Encoding used for peer IDs: Can either be a multibase encoded CID or a base58btc encoded multihash. Takes {b58mh|base36|k|base32|b...}. Default:b58mh. Required: no.
Response
On success, the call to this endpoint will return with 200 and the following body:
{
"Addresses": [
"<string>"
],
"AgentVersion": "<string>",
"ID": "<string>",
"Protocols": [
"<string>"
],
"PublicKey": "<string>"
}
cURL Example
curl -X POST "http://127.0.0.1:5001/api/v0/id?arg=<peerid>&format=<value>&peerid-base=b58mh"
Last updated