Created
June 3, 2024 08:25
-
-
Save parisyup/f3883b2470597373c680505499732eec 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
val txBuilder = ledgerService.createTransactionBuilder() | |
.setNotary(notary.name) | |
.setTimeWindowBetween(Instant.now(), Instant.now().plusMillis(Duration.ofDays(1).toMillis())) | |
.addOutputState(iouState) | |
.addInputState(inputStateRef) | |
.addCommand(IOUContract.Issue()) | |
.addCommand(IOUContract.Transfer()) | |
.addSignatories(iouState.participants) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment