0
I want to make use of a single bitcoin address for payment. I'm using bitcoinjs library's transction builder for creating my own transaction. Can anyone help with a proper code to use multiple UTXO's in a single transaction? Is there any function which can automatically select the no. of UTXO's to be consumed depending on the output transaction value to be sent? Thank you.
1Nit: you can't "add as many UTXO's as will fit in a block". Bitcoin transactions bigger than 400,000 weight units are non-standard and will not be relayed. – Murch – 2019-10-19T15:35:21.193
Thanks @Murch didn't realize there was a relay standard! – JBaczuk – 2019-10-19T19:05:10.023