Skip to content
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

Cannot use Multiple Utxos on Bitcoin #48

Open
3 tasks
gagdiez opened this issue Dec 2, 2024 · 1 comment
Open
3 tasks

Cannot use Multiple Utxos on Bitcoin #48

gagdiez opened this issue Dec 2, 2024 · 1 comment

Comments

@gagdiez
Copy link
Collaborator

gagdiez commented Dec 2, 2024

In Bitcoin, the balance of an account comes from all the unexpended inputs on their account

Our current implementation only allows creating outgoing Bitcoin transaction using the utxo with the highest value

This becomes a problem if the user wants to use their whole balance, or balance that comes from more than one incoming transaction

What needs to be done

  • Order the user's utxos by highest to lowest
  • Create a batch transaction, asking to sign all the utxos separately
  • Transform those signatures into a single bitcoin pst
@gagdiez gagdiez changed the title Bitcoin + Multiple Utxos Cannot use Multiple Utxos on Bitcoin Dec 2, 2024
@PiVortex
Copy link
Contributor

PiVortex commented Dec 2, 2024

Maybe #49 will fix this, multichain-tools may have support for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants