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.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 |
---|---|
TransactionInput |
Transaction.addInput(Sha256Hash spendTxHash,
long outputIndex,
Script script)
Creates and adds an input to this transaction, with no checking that it's valid.
|
TransactionInput |
Transaction.addInput(TransactionInput input)
Adds an input directly, with no checking that it's valid.
|
TransactionInput |
Transaction.addInput(TransactionOutput from)
Adds an input to this transaction that imports value from the given output.
|
TransactionInput |
Transaction.addSignedInput(TransactionOutPoint prevOut,
Script scriptPubKey,
ECKey sigKey)
Same as
Transaction.addSignedInput(TransactionOutPoint, org.bitcoinj.script.Script, ECKey, org.bitcoinj.core.Transaction.SigHash, boolean)
but defaults to Transaction.SigHash.ALL and "false" for the anyoneCanPay flag. |
TransactionInput |
Transaction.addSignedInput(TransactionOutPoint prevOut,
Script scriptPubKey,
ECKey sigKey,
Transaction.SigHash sigHash,
boolean anyoneCanPay)
Adds a new and fully signed input for the given parameters.
|
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.
|
TransactionInput |
TransactionInput.duplicateDetached()
Returns a copy of the input detached from its containing transaction, if need be.
|
TransactionInput |
Transaction.getInput(long index)
Same as getInputs().get(index).
|
TransactionInput |
TransactionOutput.getSpentBy()
Returns the connected input.
|
Modifier and Type | Method and Description |
---|---|
List<TransactionInput> |
Transaction.getInputs()
Returns an unmodifiable view of all inputs.
|
Modifier and Type | Method and Description |
---|---|
TransactionInput |
Transaction.addInput(TransactionInput input)
Adds an input directly, with no checking that it's valid.
|
void |
TransactionOutput.markAsSpent(TransactionInput input)
Sets this objects availableForSpending flag to false and the spentBy pointer to the given input.
|
Modifier and Type | Method and Description |
---|---|
static DefaultRiskAnalysis.RuleViolation |
DefaultRiskAnalysis.isInputStandard(TransactionInput input)
Checks if the given input passes some of the AreInputsStandard checks.
|
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) |
Copyright © 2016. All rights reserved.