-
public final class WalletBalanceData structure to hold the balance of the wallet. This is what is received on the balance channel.
-
-
Field Summary
Fields Modifier and Type Field Description private final Zatoshitotalprivate final Zatoshipendingprivate final Zatoshiavailableprivate final ZatoshichangePendingprivate final ZatoshivaluePending
-
Constructor Summary
Constructors Constructor Description WalletBalance(Zatoshi available, Zatoshi changePending, Zatoshi valuePending)
-
Method Summary
Modifier and Type Method Description final ZatoshigetTotal()The current total balance is calculated as a sum of available, changePending, and valuePending. final ZatoshigetPending()The current pending balance is calculated as the difference between total and available balances. final ZatoshigetAvailable()final ZatoshigetChangePending()final ZatoshigetValuePending()-
-
Constructor Detail
-
WalletBalance
WalletBalance(Zatoshi available, Zatoshi changePending, Zatoshi valuePending)
- Parameters:
available- The amount of funds that are available for use.changePending- The value in the account of change notes that do not yet have sufficient confirmations to be spendable.valuePending- The value in the account of all remaining received notes that either do not have sufficient confirmations to be spendable, or for which witnesses cannot yet be constructed without additional scanning.
-
-
Method Detail
-
getTotal
final Zatoshi getTotal()
The current total balance is calculated as a sum of available, changePending, and valuePending.
-
getPending
final Zatoshi getPending()
-
getAvailable
final Zatoshi getAvailable()
-
getChangePending
final Zatoshi getChangePending()
-
getValuePending
final Zatoshi getValuePending()
-
-
-
-