pub struct GetNetworkInfo {Show 16 fields
pub version: usize,
pub subversion: String,
pub protocol_version: usize,
pub local_services: String,
pub local_services_names: Vec<String>,
pub local_relay: bool,
pub time_offset: isize,
pub connections: usize,
pub connections_in: usize,
pub connections_out: usize,
pub network_active: bool,
pub networks: Vec<GetNetworkInfoNetwork>,
pub relay_fee: f64,
pub incremental_fee: f64,
pub local_addresses: Vec<GetNetworkInfoAddress>,
pub warnings: String,
}
Expand description
Result of the JSON-RPC method getnetworkinfo
.
getnetworkinfo
Returns an object containing various state info regarding P2P networking.
Fields§
§version: usize
The server version.
subversion: String
The server subversion string.
protocol_version: usize
The protocol version.
local_services: String
The services we offer to the network (hex string).
local_services_names: Vec<String>
The services we offer to the network. v0.19 and later only.
local_relay: bool
true
if transaction relay is requested from peers.
time_offset: isize
The time offset.
connections: usize
The total number of connections.
connections_in: usize
The number of inbound connections. v21 and later only.
connections_out: usize
The number of outbound connections. v21 and later only.
network_active: bool
Whether p2p networking is enabled.
networks: Vec<GetNetworkInfoNetwork>
Information per network.
relay_fee: f64
Minimum relay fee rate for transactions in BTC/kB.
incremental_fee: f64
Minimum fee rate increment for mempool limiting or replacement in BTC/kB.
local_addresses: Vec<GetNetworkInfoAddress>
List of local addresses.
warnings: String
Any network and blockchain warnings.
Implementations§
Source§impl GetNetworkInfo
impl GetNetworkInfo
Sourcepub fn into_model(self) -> Result<GetNetworkInfo, GetNetworkInfoError>
pub fn into_model(self) -> Result<GetNetworkInfo, GetNetworkInfoError>
Converts version specific type to a version nonspecific, more strongly typed type.
Trait Implementations§
Source§impl Clone for GetNetworkInfo
impl Clone for GetNetworkInfo
Source§fn clone(&self) -> GetNetworkInfo
fn clone(&self) -> GetNetworkInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more