Interface PeerInfo


public interface PeerInfo
Peer information for plugin use.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.hyperledger.besu.datatypes.Address
    Get the Ethereum address of this peer, derived from its node public key.
    Get the client ID of this peer.
    org.apache.tuweni.bytes.Bytes
    Get 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; see PeerConnection.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

      String getClientId()
      Get the client ID of this peer.
      Returns:
      client ID