Struct ethers_providers::NodeInfo
source · pub struct NodeInfo {
pub id: H256,
pub name: String,
pub enode: String,
pub enr: Enr<SigningKey>,
pub ip: IpAddr,
pub ports: Ports,
pub listen_addr: String,
pub protocols: ProtocolInfo,
}Expand description
This includes general information about a running node, spanning networking and protocol details.
Fields§
§id: H256The node’s private key.
name: StringThe node’s user agent, containing a client name, version, OS, and other metadata.
enode: StringThe enode URL of the connected node.
enr: Enr<SigningKey>The ENR of the running client.
ip: IpAddrThe IP address of the connected node.
ports: PortsThe node’s listening ports.
listen_addr: StringThe node’s listening address.
protocols: ProtocolInfoThe protocols that the node supports, with protocol metadata.
Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeInfo
impl<'de> Deserialize<'de> for NodeInfo
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more