Skip to content

FR: Potential inputs for TxBuilder #204

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

Closed
nielstron opened this issue Apr 14, 2023 · 0 comments
Closed

FR: Potential inputs for TxBuilder #204

nielstron opened this issue Apr 14, 2023 · 0 comments
Labels
enhancement New feature or request Feature request

Comments

@nielstron
Copy link
Contributor

nielstron commented Apr 14, 2023

Is your feature request related to a problem? Please describe.
When interacting with multi-address wallets, there may be tons of addresses that a user wallet controls. Usually few of them hold UTxOs. Moreover browser wallets usually cache these UTxOs anyways and allow to retreive them quickly.

When using pycardano to build a transaction for a browser wallet using TxBuilder, currently the only way for interaction is adding all of these addresses to the input_addresses. The TxBuilder will then fetch all addresses again - which may be very slow.

If you add all UTxOs of the wallet as inputs than necessarily all inputs will be consumed, which is also not necessarily desireable as it may make the transaction too big and decreases parallelizability of future tx builds (generating only one output)

Describe the solution you'd like
A parameter to the TxBuilder that allows passing a list of UTxOs that may be used by the coin selection algorithm, but do not need to be included in the tx as inputs.

Describe alternatives you've considered
None

Additional context
Useful when building dApps with PyCardano.

CIP30 defines a function that will return all UTxOs from the wallet: https://cips.cardano.org/cips/cip30/#apigetutxosamountcborvalueundefinedpaginatepaginateundefinedpromisetransactionunspentoutputnull

@nielstron nielstron changed the title Potential inputs for TxBuilder FR: Potential inputs for TxBuilder Apr 14, 2023
@cffls cffls added enhancement New feature or request Feature request labels Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants