Package org.bitcoinj.core
Interface TransactionBag
- 
- All Known Implementing Classes:
- Wallet
 
 public interface TransactionBagThis interface is used to abstract theWalletand theTransaction
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<Sha256Hash,Transaction>getTransactionPool(WalletTransaction.Pool pool)Returns transactions from a specific pool.booleanisPayToScriptHashMine(byte[] payToScriptHash)Returns true if this wallet knows the script corresponding to the given hash.booleanisPubKeyHashMine(byte[] pubKeyHash, ScriptType scriptType)Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.booleanisPubKeyMine(byte[] pubKey)Returns true if this wallet contains a keypair with the given public key.booleanisWatchedScript(Script script)Returns true if this wallet is watching transactions for outputs with the script.
 
- 
- 
- 
Method Detail- 
isPubKeyHashMineboolean isPubKeyHashMine(byte[] pubKeyHash, @Nullable ScriptType scriptType)Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.- Parameters:
- pubKeyHash- hash of the public key to look for
- scriptType- only look for given usage (currently- ScriptType.P2PKHor- ScriptType.P2WPKH) or- nullif we don't care
- Returns:
- true if hash was found
 
 - 
isWatchedScriptboolean isWatchedScript(Script script) Returns true if this wallet is watching transactions for outputs with the script.
 - 
isPubKeyMineboolean isPubKeyMine(byte[] pubKey) Returns true if this wallet contains a keypair with the given public key.
 - 
isPayToScriptHashMineboolean isPayToScriptHashMine(byte[] payToScriptHash) Returns true if this wallet knows the script corresponding to the given hash.
 - 
getTransactionPooljava.util.Map<Sha256Hash,Transaction> getTransactionPool(WalletTransaction.Pool pool) Returns transactions from a specific pool.
 
- 
 
-