Coin choice algorithm utilizing Python and Bitcoin Core JSON-RPC


I’m searching for the best approach to implement this utilizing Python:

  1. Save all the quantity of UTXOs in an array(unsure if tuple or listing or set or dictionary)

  2. Person needs to ship 0.1 BTC, will not pay greater than 3000 sats in charges and prefers not utilizing change handle

  3. Print all of the sub arrays whose sum is larger than (0.1 + 0.00000550) and fewer than (0.1 + 0.00003000)

  4. Person selects one of many choice from (3), a transaction is created with related inputs and signed

  5. Transaction particulars are printed and it’s broadcasted if consumer confirms with "Y"

  6. Tx id is printed

Supply hyperlink

Leave a reply