Interface PeerInfo
public interface PeerInfo
Peer information for plugin use.
-
Method Summary
Modifier and TypeMethodDescriptionorg.hyperledger.besu.datatypes.AddressGet the Ethereum address of this peer, derived from its node public key.Get the client ID of this peer.org.apache.tuweni.bytes.BytesGet the node ID of this peer.
-
Method Details
-
getAddress
org.hyperledger.besu.datatypes.Address getAddress()Get the Ethereum address of this peer, derived from its node public key. This is not a network address; seePeerConnection.getRemoteAddress()for the socket address.- Returns:
- the Ethereum address derived from the peer's node public key
-
getNodeId
org.apache.tuweni.bytes.Bytes getNodeId()Get the node ID of this peer.- Returns:
- node ID
-
getClientId
-