Created
July 3, 2023 16:11
-
-
Save satran004/5e46c6c482c47ec091cd72a06f259633 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
@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
https://preprod.cardanoscan.io/transaction/8889a845d953afcbf8c47fdaa33867b174d3c9c805edb446564ce74472f066f7?tab=metadata