pub struct LightningNetworkStats {
pub capacity: u64,
pub channel_count: u64,
pub node_count: u64,
pub tor_nodes: u64,
pub clearnet_nodes: u64,
pub unannounced_nodes: u64,
pub avg_capacity: u64,
pub avg_fee_rate: u64,
pub avg_base_fee_mtokens: u64,
pub med_capacity: u64,
pub med_fee_rate: u64,
pub med_base_fee_mtokens: u64,
}Expand description
Lightning Network statistics snapshot.
Fields§
§capacity: u64Total network capacity in satoshis
channel_count: u64Number of channels
node_count: u64Number of nodes
tor_nodes: u64Number of Tor nodes
clearnet_nodes: u64Number of clearnet nodes
unannounced_nodes: u64Number of unannounced nodes
avg_capacity: u64Average channel capacity in satoshis
avg_fee_rate: u64Average fee rate (ppm)
avg_base_fee_mtokens: u64Average base fee (msats)
med_capacity: u64Median channel capacity
med_fee_rate: u64Median fee rate
med_base_fee_mtokens: u64Median base fee
Implementations§
Source§impl LightningNetworkStats
impl LightningNetworkStats
Sourcepub fn capacity_btc(&self) -> f64
pub fn capacity_btc(&self) -> f64
Get capacity in BTC.
Sourcepub fn avg_capacity_btc(&self) -> f64
pub fn avg_capacity_btc(&self) -> f64
Get average capacity in BTC.
Sourcepub fn avg_fee_rate_percent(&self) -> f64
pub fn avg_fee_rate_percent(&self) -> f64
Get average fee rate in percent.
Trait Implementations§
Source§impl Clone for LightningNetworkStats
impl Clone for LightningNetworkStats
Source§fn clone(&self) -> LightningNetworkStats
fn clone(&self) -> LightningNetworkStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LightningNetworkStats
impl Debug for LightningNetworkStats
Source§impl<'de> Deserialize<'de> for LightningNetworkStats
impl<'de> Deserialize<'de> for LightningNetworkStats
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
Source§impl PartialEq for LightningNetworkStats
impl PartialEq for LightningNetworkStats
Source§impl Serialize for LightningNetworkStats
impl Serialize for LightningNetworkStats
impl StructuralPartialEq for LightningNetworkStats
Auto Trait Implementations§
impl Freeze for LightningNetworkStats
impl RefUnwindSafe for LightningNetworkStats
impl Send for LightningNetworkStats
impl Sync for LightningNetworkStats
impl Unpin for LightningNetworkStats
impl UnwindSafe for LightningNetworkStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more