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

p2p.Unprotect

**Unprotect removes a peer from the list of peers who have a bidirectional peering agreement that they are protected from being trimmed, dropped or negatively scored, returning a bool representing whether the given peer is protected or not. **

Auth level: admin

Params:

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

Result:

{"name":"bool","description":"bool","summary":"","schema":{"examples":[true],"type":["boolean"]},"required":true,"deprecated":false}