diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java index d55bd82..b183f33 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java @@ -97,4 +97,12 @@ public class WalletTransaction { public boolean isCoinControlUsed() { return !utxoSelectors.isEmpty() && utxoSelectors.get(0) instanceof PresetUtxoSelector; } + + public boolean isConsolidationSend() { + if(getRecipientAddress() != null && getWallet() != null) { + return getWallet().isWalletOutputScript(getRecipientAddress().getOutputScript()); + } + + return false; + } }