diff --git a/core/src/main/java/bisq/core/dao/node/json/ExportJsonFilesService.java b/core/src/main/java/bisq/core/dao/node/json/ExportJsonFilesService.java index 9c615d8ba4..019a1cd32e 100644 --- a/core/src/main/java/bisq/core/dao/node/json/ExportJsonFilesService.java +++ b/core/src/main/java/bisq/core/dao/node/json/ExportJsonFilesService.java @@ -233,6 +233,7 @@ public class ExportJsonFilesService implements DaoSetupService { JsonTxOutputType txOutputType = JsonTxOutputType.valueOf(txOutput.getTxOutputType().name()); int lockTime = txOutput.getLockTime(); String opReturn = txOutput.getOpReturnData() != null ? Utils.HEX.encode(txOutput.getOpReturnData()) : null; + boolean isUnspent = bsqStateService.isUnspent(txOutput.getKey()); return new JsonTxOutput(tx.getId(), txOutput.getIndex(), bsqAmount, @@ -249,7 +250,8 @@ public class ExportJsonFilesService implements DaoSetupService { txOutputType, txOutputType.getDisplayString(), opReturn, - lockTime + lockTime, + isUnspent ); }) .collect(Collectors.toList()); diff --git a/core/src/main/java/bisq/core/dao/node/json/JsonTxOutput.java b/core/src/main/java/bisq/core/dao/node/json/JsonTxOutput.java index f245ef981e..03e56d0d79 100644 --- a/core/src/main/java/bisq/core/dao/node/json/JsonTxOutput.java +++ b/core/src/main/java/bisq/core/dao/node/json/JsonTxOutput.java @@ -41,11 +41,12 @@ class JsonTxOutput { private final long time; private final JsonTxType txType; private final String txTypeDisplayString; - private final JsonTxOutputType txOutputType; // new - private final String txOutputTypeDisplayString; // new + private final JsonTxOutputType txOutputType; + private final String txOutputTypeDisplayString; @Nullable private final String opReturn; - private final int lockTime; // new + private final int lockTime; + private final boolean isUnspent; String getId() { return txId + ":" + index;