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

p2p.Connect

**Connect ensures there is a connection between this host and the peer with given peer. **

Auth level: admin

Params:

[{"name":"pi","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}]

Result:

{"name":"Null","description":"Null","schema":{"type":["null"]},"required":true,"deprecated":false}