zcash-android-wallet-sdk / cash.z.wallet.sdk.block / CompactBlockProcessor / WalletBalance / <init>

<init>

WalletBalance(totalZatoshi: Long = -1, availableZatoshi: Long = -1)

Data structure to hold the total and available balance of the wallet. This is what is received on the balance channel.

Parameters

totalZatoshi - the total balance, ignoring funds that cannot be used.

availableZatoshi - the amount of funds that are available for use. Typical reasons that funds may be unavailable include fairly new transactions that do not have enough confirmations or notes that are tied up because we are awaiting change from a transaction. When a note has been spent, its change cannot be used until there are enough confirmations.