Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
block chain management and the Wallet class. |
org.bitcoinj.wallet |
Classes that support the
Wallet , which knows how to find and save transactions relevant to
a set of keys or scripts, calculate balances, and spend money: the wallet has many features and can be extended
in various ways, please refer to the website for documentation on how to use it. |
Modifier and Type | Method and Description |
---|---|
TransactionOutput |
Transaction.addOutput(Coin 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(Coin 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(Coin 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 |
TransactionOutput.duplicateDetached()
Returns a copy of the output detached from its containing transaction, if need be.
|
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> |
UTXOsMessage.getOutputs() |
List<TransactionOutput> |
Transaction.getOutputs()
Returns an unmodifiable view of all outputs.
|
List<TransactionOutput> |
Transaction.getWalletOutputs(TransactionBag transactionBag)
Returns the list of transacion outputs, whether spent or unspent, that match a wallet by address or that are
watched by a wallet, i.e., transaction outputs whose script's address is controlled by the wallet and transaction
outputs whose script is watched by the wallet.
|
List<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.
|
TransactionInput |
Transaction.addSignedInput(TransactionOutput output,
ECKey signingKey)
Adds an input that points to the given output and contains a valid signature for it, calculated using the
signing key.
|
TransactionInput |
Transaction.addSignedInput(TransactionOutput output,
ECKey signingKey,
Transaction.SigHash sigHash,
boolean anyoneCanPay)
Adds an input that points to the given output and contains a valid signature for it, calculated using the
signing key.
|
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.
|
Modifier and Type | Method and Description |
---|---|
org.bitcoinj.core.Wallet.FeeCalculation |
Wallet.calculateFee(Wallet.SendRequest req,
Coin value,
List<TransactionInput> originalInputs,
boolean needAtLeastReferenceFee,
LinkedList<TransactionOutput> candidates) |
Constructor and Description |
---|
StoredTransactionOutput(Sha256Hash hash,
TransactionOutput out,
int height,
boolean isCoinbase) |
Constructor and Description |
---|
UTXOsMessage(NetworkParameters params,
List<TransactionOutput> outputs,
long[] heights,
Sha256Hash chainHead,
long height)
Provide an array of output objects, with nulls indicating that the output was missing.
|
Modifier and Type | Field and Description |
---|---|
Collection<TransactionOutput> |
CoinSelection.gathered |
Modifier and Type | Method and Description |
---|---|
static DefaultRiskAnalysis.RuleViolation |
DefaultRiskAnalysis.isOutputStandard(TransactionOutput output)
Checks the output to see if the script violates a standardness rule.
|
Modifier and Type | Method and Description |
---|---|
CoinSelection |
KeyTimeCoinSelector.select(Coin target,
List<TransactionOutput> candidates) |
CoinSelection |
FilteringCoinSelector.select(Coin target,
List<TransactionOutput> candidates) |
CoinSelection |
DefaultCoinSelector.select(Coin biTarget,
List<TransactionOutput> candidates) |
CoinSelection |
CoinSelector.select(Coin target,
List<TransactionOutput> candidates)
Creates a CoinSelection that tries to meet the target amount of value.
|
Constructor and Description |
---|
CoinSelection(Coin valueGathered,
Collection<TransactionOutput> gathered) |
Copyright © 2014. All rights reserved.