public interface TransactionBag
Wallet
and the Transaction
Modifier and Type | Method and Description |
---|---|
java.util.Map<Sha256Hash,Transaction> |
getTransactionPool(WalletTransaction.Pool pool)
Returns transactions from a specific pool.
|
boolean |
isPayToScriptHashMine(byte[] payToScriptHash)
Returns true if this wallet knows the script corresponding to the given hash.
|
boolean |
isPubKeyHashMine(byte[] pubKeyHash,
Script.ScriptType scriptType)
Look for a public key which hashes to the given hash and (optionally) is used for a specific script type.
|
boolean |
isPubKeyMine(byte[] pubKey)
Returns true if this wallet contains a keypair with the given public key.
|
boolean |
isWatchedScript(Script script)
Returns true if this wallet is watching transactions for outputs with the script.
|
boolean isPubKeyHashMine(byte[] pubKeyHash, @Nullable Script.ScriptType scriptType)
pubKeyHash
- hash of the public key to look forscriptType
- only look for given usage (currently Script.ScriptType#P2PKH
or Script.ScriptType#P2WPKH
) or null
if we don't careboolean isWatchedScript(Script script)
boolean isPubKeyMine(byte[] pubKey)
boolean isPayToScriptHashMine(byte[] payToScriptHash)
java.util.Map<Sha256Hash,Transaction> getTransactionPool(WalletTransaction.Pool pool)