Struct SdkNodeInfo
pub struct SdkNodeInfo {
pub version: Version,
pub measurement: Measurement,
pub user_pk: UserPk,
pub node_pk: NodePk,
pub balance: Amount,
pub lightning_balance: Amount,
pub lightning_sendable_balance: Amount,
pub lightning_max_sendable_balance: Amount,
pub onchain_balance: Amount,
pub onchain_trusted_balance: Amount,
pub num_channels: usize,
pub num_usable_channels: usize,
}Expand description
Information about a Lexe node.
Fields§
§version: VersionThe node’s current semver version, e.g. 0.6.9.
measurement: MeasurementThe hex-encoded SGX ‘measurement’ of the current node. The measurement is the hash of the enclave binary.
user_pk: UserPkThe hex-encoded ed25519 user public key used to identify a Lexe user. The user keypair is derived from the root seed.
node_pk: NodePkThe hex-encoded secp256k1 Lightning node public key; the node_id.
balance: AmountThe sum of our lightning_balance and our onchain_balance, in sats.
lightning_balance: AmountTotal Lightning balance in sats, summed over all of our channels.
lightning_sendable_balance: AmountAn estimated upper bound, in sats, on how much of our Lightning balance we can send to most recipients on the Lightning Network, accounting for Lightning limits such as our channel reserve, pending HTLCs, fees, etc. You should usually be able to spend this amount.
lightning_max_sendable_balance: AmountA hard upper bound on how much of our Lightning balance can be spent
right now, in sats. This is always >= lightning_sendable_balance.
Generally it is only possible to spend exactly this amount if the
recipient is a Lexe user.
onchain_balance: AmountTotal on-chain balance in sats, including unconfirmed funds.
onchain_trusted_balance: AmountTrusted on-chain balance in sats, including only confirmed funds and unconfirmed outputs originating from our own wallet.
num_channels: usizeThe total number of Lightning channels.
num_usable_channels: usizeThe number of channels which are currently usable, i.e. channel_ready
messages have been exchanged and the channel peer is online.
Is always less than or equal to num_channels.
Trait Implementations§
§impl Clone for SdkNodeInfo
impl Clone for SdkNodeInfo
§fn clone(&self) -> SdkNodeInfo
fn clone(&self) -> SdkNodeInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more