Skip to content
BLOBPEDIAby Unity Nodes
Documentation/rpc/JSON-RPC methodView on rpc
rpc/JSON-RPC method

p2p.PeerInfo

**PeerInfo returns a small slice of information Peerstore has on the given peer. **

Auth level: admin

Params:

[{"name":"id","description":"peer.ID","summary":"","schema":{"examples":["CovLVG4fQcqUS6DmoMxAwVJGNW6PMzfwTG6BHW9NH9TLGHcbRfvPVc3JVhnufK3HTzStoTo"],"type":["string"]},"required":true,"deprecated":false}]

Result:

{"name":"peer.AddrInfo","description":"peer.AddrInfo","summary":"","schema":{"examples":[{"ID":"CovLVG4fQcqUS6DmoMxAwVJGNW6PMzfwTG6BHW9NH9TLGHcbRfvPVc3JVhnufK3HTzStoTo","Addrs":["/ip6/::1/udp/2121/quic-v1"]}],"additionalProperties":false,"properties":{"Addrs":{"items":{"items":{"additionalProperties":false,"type":"object"},"type":"array"},"type":"array"},"ID":{"type":"string"}},"type":["object"]},"required":true,"deprecated":false}