Docs

system_unstable_networkState - Bittensor RPC Method

Get detailed network state diagnostics for a Bittensor node. Unstable API subject to change.

Returns detailed diagnostic information about the node's network layer, including the peer ID, listen addresses, connected peers with protocol details, and notification protocols. This method is marked as unstable, meaning its response format may change between node versions without notice.

Parameters

None.

Response

Returns a complex object with network diagnostics:

FieldTypeDescription
peerIdstringThe node's libp2p peer ID.
listenedAddressesarrayMultiaddr strings the node is listening on.
externalAddressesarrayExternal addresses as seen by peers.
connectedPeersobjectMap of peer IDs to detailed connection info (protocols, roles, best block).
notConnectedPeersobjectKnown but not currently connected peers.
peersetobjectPeerset manager state.

Code Examples

Use Cases

  • Deep network diagnostics -- Inspect protocol-level details of peer connections, including which notification protocols are negotiated.
  • NAT and firewall debugging -- Compare listenedAddresses with externalAddresses to detect NAT issues or misconfigured firewalls.
  • Peer protocol analysis -- Determine which peers support which protocols (block announces, transactions, GRANDPA, etc.).

Notes

  • This API is explicitly marked as unstable. The response format may change without deprecation warnings between Substrate/Bittensor node versions.
  • The response can be very large on well-connected nodes.
  • May require --rpc-methods unsafe on some node configurations.
  • On public shared RPC endpoints, the response may be masked or limited.