diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java index b183f33..808af42 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/WalletTransaction.java @@ -82,6 +82,10 @@ public class WalletTransaction { return fee; } + public double getFeeRate() { + return (double)fee / transaction.getVirtualSize(); + } + public long getTotal() { return selectedUtxos.keySet().stream().mapToLong(BlockTransactionHashIndex::getValue).sum(); }