Package org.bitcoinj.wallet
Class CoinSelection
- java.lang.Object
-
- org.bitcoinj.wallet.CoinSelection
-
public class CoinSelection extends java.lang.Object
Represents the results of aCoinSelector.select(Coin, List)
operation. A coin selection represents a list of spendable transaction outputs that sum together to atotalValue()
value gathered. Different coin selections could be produced by different coin selectors from the same input set, according to their varying policies.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<TransactionOutput>
gathered
Deprecated.Useoutputs()
Coin
valueGathered
Deprecated.UsetotalValue()
-
Constructor Summary
Constructors Constructor Description CoinSelection(java.util.List<TransactionOutput> gathered)
CoinSelection(Coin valueGathered, java.util.Collection<TransactionOutput> gathered)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<TransactionOutput>
outputs()
Coin
totalValue()
-
-
-
Field Detail
-
valueGathered
@Deprecated public final Coin valueGathered
Deprecated.UsetotalValue()
-
gathered
@Deprecated public final java.util.List<TransactionOutput> gathered
Deprecated.Useoutputs()
-
-
Constructor Detail
-
CoinSelection
public CoinSelection(java.util.List<TransactionOutput> gathered)
-
CoinSelection
@Deprecated public CoinSelection(Coin valueGathered, java.util.Collection<TransactionOutput> gathered)
Deprecated.
-
-
Method Detail
-
totalValue
public Coin totalValue()
- Returns:
- Total value of gathered outputs.
-
outputs
public java.util.List<TransactionOutput> outputs()
- Returns:
- List of gathered outputs
-
-