NodeState class

The node state of a Greenlight LN node running in the cloud.

Note: The implementation attempts to provide the most up-to-date values, which may result in some short-lived inconsistencies (e.g., channels_balance_msat may be updated before inbound_liquidity_msats).

Constructors

NodeState({required String id, required int blockHeight, required int channelsBalanceMsat, required int onchainBalanceMsat, required int pendingOnchainBalanceMsat, required List<UnspentTransactionOutput> utxos, required int maxPayableMsat, required int maxReceivableMsat, required int maxSinglePaymentAmountMsat, required int maxChanReserveMsats, required List<String> connectedPeers, required int maxReceivableSinglePaymentAmountMsat, required int totalInboundLiquidityMsats})
const

Properties

blockHeight → int
final
channelsBalanceMsat → int
final
connectedPeers → List<String>
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
maxChanReserveMsats → int
final
maxPayableMsat → int
final
maxReceivableMsat → int
final
maxReceivableSinglePaymentAmountMsat → int
Maximum receivable in a single payment without requiring a new channel open.
final
maxSinglePaymentAmountMsat → int
final
onchainBalanceMsat → int
final
pendingOnchainBalanceMsat → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
totalInboundLiquidityMsats → int
Total receivable on all available channels
final
utxos → List<UnspentTransactionOutput>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited