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 Amount
immature
private Amount
trustedPending
private Amount
untrustedPending
private Amount
confirmed
private Amount
trustedSpendable
private Amount
total
-
Method Summary
Modifier and Type Method Description final Amount
getImmature()
All coinbase outputs not yet matured final Unit
setImmature(Amount immature)
All coinbase outputs not yet matured final Amount
getTrustedPending()
Unconfirmed UTXOs generated by a wallet tx final Unit
setTrustedPending(Amount trustedPending)
Unconfirmed UTXOs generated by a wallet tx final Amount
getUntrustedPending()
Unconfirmed UTXOs received from an external wallet final Unit
setUntrustedPending(Amount untrustedPending)
Unconfirmed UTXOs received from an external wallet final Amount
getConfirmed()
Confirmed and immediately spendable balance final Unit
setConfirmed(Amount confirmed)
Confirmed and immediately spendable balance final Amount
getTrustedSpendable()
Get sum of trusted_pending and confirmed coins. final Unit
setTrustedSpendable(Amount trustedSpendable)
Get sum of trusted_pending and confirmed coins. final Amount
getTotal()
Get the whole balance visible to the wallet. final Unit
setTotal(Amount total)
Get the whole balance visible to the wallet. Unit
destroy()
-
-
-
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.
-
-