Skip to content

Instantly share code, notes, and snippets.

@parisyup
Created June 3, 2024 08:25
Show Gist options
  • Save parisyup/f3883b2470597373c680505499732eec to your computer and use it in GitHub Desktop.
Save parisyup/f3883b2470597373c680505499732eec to your computer and use it in GitHub Desktop.
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