Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.wallet |
Modifier and Type | Method and Description |
---|---|
TransactionOutput |
Transaction.addOutput(BigInteger value,
Address address)
Creates an output based on the given address and value, adds it to this transaction, and returns the new output.
|
TransactionOutput |
Transaction.addOutput(BigInteger value,
ECKey pubkey)
Creates an output that pays to the given pubkey directly (no address) with the given value, adds it to this
transaction, and returns the new output.
|
TransactionOutput |
Transaction.addOutput(BigInteger value,
Script script)
Creates an output that pays to the given script.
|
TransactionOutput |
Transaction.addOutput(TransactionOutput to)
Adds the given output to this transaction.
|
TransactionOutput |
TransactionOutPoint.getConnectedOutput()
An outpoint is a part of a transaction input that points to the output of another transaction.
|
TransactionOutput |
TransactionInput.getConnectedOutput()
Returns the connected output, assuming the input was connected with
TransactionInput.connect(TransactionOutput) or variants at some point. |
TransactionOutput |
Transaction.getOutput(int index) |
Modifier and Type | Method and Description |
---|---|
LinkedList<TransactionOutput> |
Wallet.calculateAllSpendCandidates(boolean excludeImmatureCoinbases)
Returns a list of all possible outputs we could possibly spend, potentially even including immature coinbases
(which the protocol may forbid us from spending).
|
List<TransactionOutput> |
Transaction.getOutputs()
Returns an unmodifiable view of all outputs.
|
LinkedList<TransactionOutput> |
Wallet.getWatchedOutputs(boolean excludeImmatureCoinbases)
Returns all the outputs that match addresses or scripts added via
Wallet.addWatchedAddress(Address) or
Wallet.addWatchedScripts(java.util.List) . |
Modifier and Type | Method and Description |
---|---|
TransactionInput |
Transaction.addInput(TransactionOutput from)
Adds an input to this transaction that imports value from the given output.
|
TransactionOutput |
Transaction.addOutput(TransactionOutput to)
Adds the given output to this transaction.
|
void |
TransactionInput.connect(TransactionOutput out)
Internal use only: connects this TransactionInput to the given output (updates pointers and spent flags)
|
void |
TransactionInput.verify(TransactionOutput output)
Verifies that this input can spend the given output.
|
Constructor and Description |
---|
StoredTransactionOutput(Sha256Hash hash,
TransactionOutput out,
int height,
boolean isCoinbase) |
Modifier and Type | Field and Description |
---|---|
Collection<TransactionOutput> |
CoinSelection.gathered |
Modifier and Type | Method and Description |
---|---|
CoinSelection |
KeyTimeCoinSelector.select(BigInteger target,
LinkedList<TransactionOutput> candidates) |
CoinSelection |
DefaultCoinSelector.select(BigInteger biTarget,
LinkedList<TransactionOutput> candidates) |
CoinSelection |
CoinSelector.select(BigInteger target,
LinkedList<TransactionOutput> candidates) |
Constructor and Description |
---|
CoinSelection(BigInteger valueGathered,
Collection<TransactionOutput> gathered) |
Copyright © 2014. All rights reserved.