name the bitcoin unit in the value, balance and fee column headings of the transactions, utxos and search results csv exports
What changed, and why it matters
This commit only changes the column headings in CSV export files so they include the name of the bitcoin unit being used (for example, 'Value (BTC)' or 'Value (sats)'). It is a user-experience improvement, not a security fix.
No security action needed; treat as a normal UI/UX change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch modifies three Java files to append the current Bitcoin unit label to CSV headers for transaction, UTXO, and search-result exports. No logic, parsing, cryptography, network, or file-handling behavior is changed beyond the header strings.
Changed components
CSV export header generation in SearchWalletDialog.javaCSV export header generation in WalletTransactions.javaCSV export header generation in UtxosController.javaInspect captured patch +5 / −5
### src/main/java/com/sparrowwallet/sparrow/control/SearchWalletDialog.java
@@ -324,7 +324,7 @@ public void exportResults(boolean showWallet) {
if(file != null) {
try(FileOutputStream outputStream = new FileOutputStream(file)) {
CsvWriter writer = new CsvWriter(outputStream, ',', StandardCharsets.UTF_8);
- List<String> headers = new ArrayList<>(List.of("Wallet", "Account", "Type", "Date", "Txid / Address / Output", "Label", "Value"));
+ List<String> headers = new ArrayList<>(List.of("Wallet", "Account", "Type", "Date", "Txid / Address / Output", "Label", "Value (" + results.getBitcoinUnit().getLabel() + ")"));
if(!showWallet) {
headers.remove(0);
}
### src/main/java/com/sparrowwallet/sparrow/io/WalletTransactions.java
@@ -78,9 +78,9 @@ public void exportWallet(Wallet wallet, OutputStream outputStream, String passwo
writer.write("Date (UTC)");
writer.write("Label");
- writer.write("Value");
- writer.write("Balance");
- writer.write("Fee");
+ writer.write("Value (" + bitcoinUnit.getLabel() + ")");
+ writer.write("Balance (" + bitcoinUnit.getLabel() + ")");
+ writer.write("Fee (" + bitcoinUnit.getLabel() + ")");
if(fiatCurrency != null) {
writer.write("Value (" + fiatCurrency.getCurrencyCode() + ")");
}
### src/main/java/com/sparrowwallet/sparrow/wallet/UtxosController.java
@@ -187,7 +187,7 @@ public void exportUtxos(ActionEvent event) {
if(file != null) {
try(FileOutputStream outputStream = new FileOutputStream(file)) {
CsvWriter writer = new CsvWriter(outputStream, ',', StandardCharsets.UTF_8);
- writer.writeRecord(new String[] {"Date (UTC)", "Output", "Address", "Label", "Value"});
+ writer.writeRecord(new String[] {"Date (UTC)", "Output", "Address", "Label", "Value (" + utxosTable.getBitcoinUnit().getLabel() + ")"});
for(Entry entry : getWalletForm().getWalletUtxosEntry().getChildren()) {
UtxoEntry utxoEntry = (UtxoEntry)entry;
writer.write(utxoEntry.getBlockTransaction().getDate() == null ? "Unconfirmed" : WalletTransactions.DATE_FORMAT.format(utxoEntry.getBlockTransaction().getDate()));Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.