Skip to content

Instantly share code, notes, and snippets.

@satran004
Created July 3, 2023 16:11
Show Gist options
  • Save satran004/5e46c6c482c47ec091cd72a06f259633 to your computer and use it in GitHub Desktop.
Save satran004/5e46c6c482c47ec091cd72a06f259633 to your computer and use it in GitHub Desktop.
@Test
public void sendToSelf() {
Tx tx1 = new Tx()
.payToAddress(sender1Addr, Amount.ada(1))
.attachMetadata(MessageMetadata.create().add("Send to self"))
.from(sender1Addr);
QuickTxBuilder quickTxBuilder = new QuickTxBuilder(backendService);
Result<String> result = quickTxBuilder
.compose(tx1)
.withSigner(SignerProviders.signerFrom(sender1))
.completeAndWait(System.out::println);
System.out.println(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment