-
-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does the library support using UTXOs from different addresses as inputs to transfer ada and tokens? #423
Comments
Hello, could you give a reply? |
There is no example for this yet, but we will create a new guide following the approach mentioned below. Currently, the You may then want to use the So, if you maintain a map of address → To build transactions from UTXOs, you can use the Here's an example with QuickTx: Tx tx = new Tx()
.collectFrom(utxos)
.payToAddress(receiver, Amount.ada(4.5))
// Then to build and sign
Result<String> result = quickTxBuilder
.compose(tx1)
.withSigner(SignerProviders.signerFrom(account1))
.withSigner(SignerProviders.signerFrom(account2))
... This PR will implement the same functionality with a new HD Wallet API layer, but it will take some time to finalize: #363 |
Thank for your reply very much.
|
Thanks! You are using the Composable Functions api. This should work. The |
hello.
I have a wallet. it contains many addresses and utxos. I want to use these utxos coming from different addresses to make a transfer. Whether i can use this lib to do this? I only see an example to using utxos coming from one sender.
If it can do, could you give me some examples or code snippets?
Thanks
The text was updated successfully, but these errors were encountered: