Skip to content

Instantly share code, notes, and snippets.

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