Parameters
Returns
- nodeRolesstring | array
Indicates the role of the node in the network
- numPeersstring
Represents the number of peer connections the node currently has
- isSyncingboolean
A boolean value indicating whether the node is currently synchronizing
- shouldHavePeersboolean
A boolean value indicating whether the node is expected to have peer connections
- localPeerIdstring
The unique identifier of the node within the peer-to-peer network
- localListenAddressesarray
An array of network addresses where the node is listening for connections
- peersInfostring | array
Peer details as a JSON-encoded string or an array of peer objects, where each peer object includes:
- peerIdstring
The unique identifier of the peer node
- rolesstring
The roles assigned to the peer node in the network
- protocolVersionstring
The protocol version the peer is using
- bestHashstring
The hash of the best block that the peer has seen
- bestNumberstring
The number of the best block that the peer has seen