Open starkdm opened 3 years ago
@starkdm the coins added to the transactionbuilder are the available coins. It is not guarantee all get spent.
However, you can call txbuilder.SendAllRemainingToChange()
to make sure all the coins get spent and sent to change.
Code:
Output:
Why the resulting transaction contains only one input, although I indicated 2. I need the funds from 2 addresses to be fully spent. At each address 1 coin of 4000 satoshes.