Created
June 3, 2024 08:22
-
-
Save parisyup/e5667c668c4e81c49e069408cd8917f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var txBuilder = ledgerService.createTransactionBuilder() //build sample transaction to test | |
.setNotary(notary.getName()) | |
.setTimeWindowBetween(Instant.now(), Instant.now().plusMillis(Duration.ofDays(1).toMillis())) | |
.addOutputState(iouState) | |
.addInputState(inputStateRef) | |
.addCommand(new IOUContract.Issue()) | |
.addCommand(new IOUContract.Transfer()) | |
.addSignatories(iouState.getParticipants()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment