diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index bfcc768..8db827a 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -1461,6 +1461,10 @@ public class Wallet extends Persistable implements Comparable { return isValid() && !getSigningNodes(psbt).isEmpty(); } + public boolean canSignAllInputs(PSBT psbt) { + return isValid() && getSigningNodes(psbt).size() == psbt.getPsbtInputs().size(); + } + /** * Determines which nodes in this wallet can sign which inputs in the provided PSBT *