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

p2p.ConnectionState

**ConnectionState returns information about each active connection to the peer. NOTE: At most cases there should be only a single connection. **

Auth level: admin

Params:

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

Result:

{"name":"[]ConnectionState","description":"[]ConnectionState","summary":"","schema":{"examples":[[{"Info":{"StreamMultiplexer":"/celestia/mocha/ipfs/bitswap","Security":"/celestia/mocha/ipfs/bitswap","Transport":"string value","UsedEarlyMuxerNegotiation":true},"NumStreams":42,"Direction":0,"Opened":"0001-01-01T00:00:00Z","Limited":true}]],"items":[{"additionalProperties":false,"properties":{"Direction":{"type":"integer"},"Info":{"additionalProperties":false,"properties":{"Direction":{"type":"integer"},"Info":{},"Limited":{"type":"boolean"},"NumStreams":{"type":"integer"},"Opened":{"format":"date-time","type":"string"}},"type":"object"},"Limited":{"type":"boolean"},"NumStreams":{"type":"integer"},"Opened":{"format":"date-time","type":"string"}},"type":["object"]}],"type":["array"]},"required":true,"deprecated":false}