Skip to content

Consider exporting the gatherUtxos utils function #296

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

Open
mr-zwets opened this issue Mar 15, 2025 · 0 comments
Open

Consider exporting the gatherUtxos utils function #296

mr-zwets opened this issue Mar 15, 2025 · 0 comments
Labels
javascript-sdk Relates to the CashScript JavaScript SDK

Comments

@mr-zwets
Copy link
Member

mr-zwets commented Mar 15, 2025

Consider exporting the gatherUtxos utils function and maybe a variant to gatherTokenUtxos

Because it's often useful to have the user add input Utxos up to a certain amount, both for BCH and for tokens.
It's also handy that this function returns the actual input amount so the change amount can easily be calculated from this.

@mr-zwets mr-zwets added the javascript-sdk Relates to the CashScript JavaScript SDK label Mar 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript-sdk Relates to the CashScript JavaScript SDK
Projects
None yet
Development

No branches or pull requests

1 participant