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

WalletBalance

data class WalletBalance

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.

Constructors

<init>

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

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

Properties

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.

val availableZatoshi: Long

totalZatoshi

the total balance, ignoring funds that cannot be used.

val totalZatoshi: Long