Package | Description |
---|---|
org.bitcoinj.core |
The core package contains classes for network messages like
Block and
Transaction , peer connectivity via PeerGroup ,
and block chain management. |
org.bitcoinj.protocols.channels |
Micropayment channels allow for rapid tiny payments to be made to a third party once a channel has been set up, using
some of the advanced features of the Bitcoin protocol.
|
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 |
TransactionInput.getConnectedOutput()
Returns the connected output, assuming the input was connected with
TransactionInput.connect(TransactionOutput) or variants at some point. |
TransactionOutput |
TransactionOutPoint.getConnectedOutput()
An outpoint is a part of a transaction input that points to the output of another transaction.
|
TransactionOutput |
Transaction.getOutput(long index)
Same as getOutputs().get(index)
|
Modifier and Type | Method and Description |
---|---|
List<TransactionOutput> |
Transaction.getOutputs()
Returns an unmodifiable view of all outputs.
|
List<TransactionOutput> |
UTXOsMessage.getOutputs()
Returns the list of outputs that matched the query.
|
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.
|
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.
|
Constructor and Description |
---|
TransactionOutPoint(NetworkParameters params,
TransactionOutput connectedOutput) |
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 | Method and Description |
---|---|
TransactionOutput |
PaymentChannelV2ServerState.getClientOutput() |
abstract TransactionOutput |
PaymentChannelServerState.getClientOutput() |
TransactionOutput |
PaymentChannelV1ServerState.getClientOutput() |
Modifier and Type | Field and Description |
---|---|
Collection<TransactionOutput> |
CoinSelection.gathered |
protected HashSet<TransactionOutput> |
Wallet.myUnspents |
Modifier and Type | Method and Description |
---|---|
List<TransactionOutput> |
Wallet.calculateAllSpendCandidates()
Returns a list of the outputs that can potentially be spent, i.e.
|
List<TransactionOutput> |
Wallet.calculateAllSpendCandidates(boolean excludeImmatureCoinbases)
Deprecated.
Use
Wallet.calculateAllSpendCandidates(boolean, boolean) or the zero-parameter form instead. |
List<TransactionOutput> |
Wallet.calculateAllSpendCandidates(boolean excludeImmatureCoinbases,
boolean excludeUnsignable)
Returns a list of all outputs that are being tracked by this wallet either from the
UTXOProvider
(in this case the existence or not of private keys is ignored), or the wallets internal storage (the default)
taking into account the flags. |
protected LinkedList<TransactionOutput> |
Wallet.calculateAllSpendCandidatesFromUTXOProvider(boolean excludeImmatureCoinbases)
Returns the spendable candidates from the
UTXOProvider based on keys that the wallet contains. |
List<TransactionOutput> |
Wallet.getUnspents()
Returns a copy of the internal unspent outputs list
|
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 |
---|---|
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 |
---|---|
org.bitcoinj.wallet.Wallet.FeeCalculation |
Wallet.calculateFee(SendRequest req,
Coin value,
List<TransactionInput> originalInputs,
boolean needAtLeastReferenceFee,
List<TransactionOutput> candidates) |
CoinSelection |
FilteringCoinSelector.select(Coin target,
List<TransactionOutput> candidates) |
CoinSelection |
DefaultCoinSelector.select(Coin target,
List<TransactionOutput> candidates) |
CoinSelection |
CoinSelector.select(Coin target,
List<TransactionOutput> candidates)
Creates a CoinSelection that tries to meet the target amount of value.
|
CoinSelection |
KeyTimeCoinSelector.select(Coin target,
List<TransactionOutput> candidates) |
Constructor and Description |
---|
CoinSelection(Coin valueGathered,
Collection<TransactionOutput> gathered) |
Copyright © 2016. All rights reserved.