I am looking for the easiest way to implement this using Python:

  1. Save all the amount of UTXOs in an array(not sure if tuple or list or set or dictionary)

  2. User wants to send 0.1 BTC, won't pay more than 3000 sats in fees and prefers not using change address

  3. Print all the sub arrays whose sum is greater than (0.1 + 0.00000550) and less than (0.1 + 0.00003000)

  4. User selects one of the option from (3), a transaction is created with relevant inputs and signed

  5. Transaction details are printed and it is broadcasted if user confirms with "Y"

  6. Tx id is printed

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.