Package | Description |
---|---|
com.google.bitcoin.core | |
com.google.bitcoin.jni | |
com.google.bitcoin.script |
Modifier and Type | Method and Description |
---|---|
TransactionInput |
Transaction.addSignedInput(TransactionOutPoint prevOut,
Script scriptPubKey,
ECKey sigKey)
Same as
Transaction.addSignedInput(TransactionOutPoint, com.google.bitcoin.script.Script, ECKey, com.google.bitcoin.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.
|
ECKey |
TransactionOutPoint.getConnectedKey(Wallet wallet)
Returns the ECKey identified in the connected output, for either pay-to-address scripts or pay-to-key scripts.
|
Address |
TransactionInput.getFromAddress()
Deprecated.
|
Script |
TransactionOutput.getScriptPubKey() |
Script |
TransactionInput.getScriptSig()
Returns the script that is fed to the referenced output (scriptPubKey) script in order to satisfy it: usually
contains signatures and maybe keys, but can contain arbitrary data if the output script accepts it.
|
int |
Transaction.getSigOpCount()
Gets the count of regular SigOps in this transactions
|
BigInteger |
Transaction.getValue(Wallet wallet)
Returns the difference of
Transaction.getValueSentFromMe(Wallet) and Transaction.getValueSentToMe(Wallet) . |
BigInteger |
Transaction.getValueSentFromMe(Wallet wallet)
Calculates the sum of the inputs that are spending coins with keys in the wallet.
|
boolean |
Wallet.isPendingTransactionRelevant(Transaction tx)
This method is used by a
Peer to find out if a transaction that has been announced is interesting,
that is, whether we should bother downloading its dependencies and exploring the transaction to decide how
risky it is. |
boolean |
Wallet.isTransactionRelevant(Transaction tx)
Returns true if the given transaction sends coins to any of our keys, or has inputs spending any of our outputs,
and if includeDoubleSpending is true, also returns true if tx has inputs that are spending outputs which are
not ours but which are spent by pending transactions.
|
boolean |
BlockChainListener.isTransactionRelevant(Transaction tx)
Returns true if the given transaction is interesting to the listener.
|
boolean |
AbstractBlockChainListener.isTransactionRelevant(Transaction tx) |
void |
Transaction.signInputs(Transaction.SigHash hashType,
Wallet wallet)
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated.
|
void |
Transaction.signInputs(Transaction.SigHash hashType,
Wallet wallet,
org.spongycastle.crypto.params.KeyParameter aesKey)
Once a transaction has some inputs and outputs added, the signatures in the inputs can be calculated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
NativeBlockChainListener.isTransactionRelevant(Transaction tx) |
Modifier and Type | Method and Description |
---|---|
void |
Script.correctlySpends(Transaction txContainingThis,
long scriptSigIndex,
Script scriptPubKey,
boolean enforceP2SH)
Verifies that this script (interpreted as a scriptSig) correctly spends the given scriptPubKey.
|
Address |
Script.getFromAddress(NetworkParameters params)
Deprecated.
|
static long |
Script.getP2SHSigOpCount(byte[] scriptSig)
Gets the count of P2SH Sig Ops in the Script scriptSig
|
byte[] |
Script.getPubKey()
Returns the public key in this script.
|
byte[] |
Script.getPubKeyHash()
If a program matches the standard template DUP HASH160
|
static int |
Script.getSigOpCount(byte[] program)
Gets the count of regular SigOps in the script program (counting multisig ops as 20)
|
Address |
Script.getToAddress(NetworkParameters params)
Gets the destination address from this script, if it's in the required form (see getPubKey).
|
Constructor and Description |
---|
Script(byte[] programBytes)
Construct a Script that copies and wraps the programBytes array.
|
Script(byte[] programBytes,
long creationTimeSeconds) |
Copyright © 2014. All rights reserved.