- Any clever approaches to selecting a set of input UTxOs for a given task? The transaction fee cannot be calculated until the transaction is composed, the minimum UTxO amounts cannot be calculated until the set of output UTxOs is composed. There are also constraints on the transaction size and token bundle size and i don’t think it’s possible to validate before building or even submitting a transaction.
I will come up with some empirical algorithm but if somebody invented a bicycle, please share.
If it helps a discussion, let’s say I’m automating NFT minting, one NFT per transaction.
- Another interesting question is this. If there are multiple different transactions that can achieve the same task, which would be better a) from a user point of view b) from the blockchain point of view?
Minimize the number of resulting UTxO, maybe?