Package org.bitcoindevkit
Class Balance
-
- All Implemented Interfaces:
-
org.bitcoindevkit.Disposable
public final class Balance implements Disposable
Balance, differentiated into various categories.
-
-
Field Summary
Fields Modifier and Type Field Description private Amountimmatureprivate AmounttrustedPendingprivate AmountuntrustedPendingprivate Amountconfirmedprivate AmounttrustedSpendableprivate Amounttotal
-
Method Summary
Modifier and Type Method Description final AmountgetImmature()All coinbase outputs not yet matured final UnitsetImmature(Amount immature)All coinbase outputs not yet matured final AmountgetTrustedPending()Unconfirmed UTXOs generated by a wallet tx final UnitsetTrustedPending(Amount trustedPending)Unconfirmed UTXOs generated by a wallet tx final AmountgetUntrustedPending()Unconfirmed UTXOs received from an external wallet final UnitsetUntrustedPending(Amount untrustedPending)Unconfirmed UTXOs received from an external wallet final AmountgetConfirmed()Confirmed and immediately spendable balance final UnitsetConfirmed(Amount confirmed)Confirmed and immediately spendable balance final AmountgetTrustedSpendable()Get sum of trusted_pending and confirmed coins. final UnitsetTrustedSpendable(Amount trustedSpendable)Get sum of trusted_pending and confirmed coins. final AmountgetTotal()Get the whole balance visible to the wallet. final UnitsetTotal(Amount total)Get the whole balance visible to the wallet. Unitdestroy()-
-
Method Detail
-
getImmature
final Amount getImmature()
All coinbase outputs not yet matured
-
setImmature
final Unit setImmature(Amount immature)
All coinbase outputs not yet matured
-
getTrustedPending
final Amount getTrustedPending()
Unconfirmed UTXOs generated by a wallet tx
-
setTrustedPending
final Unit setTrustedPending(Amount trustedPending)
Unconfirmed UTXOs generated by a wallet tx
-
getUntrustedPending
final Amount getUntrustedPending()
Unconfirmed UTXOs received from an external wallet
-
setUntrustedPending
final Unit setUntrustedPending(Amount untrustedPending)
Unconfirmed UTXOs received from an external wallet
-
getConfirmed
final Amount getConfirmed()
Confirmed and immediately spendable balance
-
setConfirmed
final Unit setConfirmed(Amount confirmed)
Confirmed and immediately spendable balance
-
getTrustedSpendable
final Amount getTrustedSpendable()
Get sum of trusted_pending and confirmed coins.
This is the balance you can spend right now that shouldn't get cancelled via another party double spending it.
-
setTrustedSpendable
final Unit setTrustedSpendable(Amount trustedSpendable)
Get sum of trusted_pending and confirmed coins.
This is the balance you can spend right now that shouldn't get cancelled via another party double spending it.
-
-
-
-