0

I'm building bitcoin wallet and i'm not sure if it's better to spend smaller UTxO first or bigger UTxO?

4
  • If by small you mean size, it is better to spend smaller UTXO because less fees. If small is about amount, I don't think it matters in most of the cases. It can be important in some cases when you care about privacy and amounts matter.
    – Prayank
    Nov 7 '21 at 19:42
  • Also coinselection is like a subject in engineering and two mods on this website are experts on it. However my personal opinion: Use coin control most of the times. There can be few times when you need to rely on algos so coinselection algos may help. Bitcoin Core uses 3 AFAIK which I may understand in few years but until then I use coin control.
    – Prayank
    Nov 7 '21 at 19:46
  • @Prayank Thanks anyway Nov 7 '21 at 19:51
  • 1
    murch.one/wp-content/uploads/2016/11/… is a study about the performance of different automatic coin selection strategies. Neither largest-first or smallest-first are particularly good ones. Nov 7 '21 at 20:37

Browse other questions tagged or ask your own question.