Bitcoin Forum

Bitcoin => Electrum => Topic started by: tmp1 on September 08, 2018, 01:33:21 PM



Title: Electrum disable use change address without UI.
Post by: tmp1 on September 08, 2018, 01:33:21 PM
Hello!
This is very easy to disable change address with UI. But I do not have UI where is a file with this setting located?
https://i1.wp.com/cryptorials.io/wp-content/uploads/2016/01/electrum-preferences.png?resize=300%2C239


Title: Re: Electrum disable use change address without UI.
Post by: bob123 on September 08, 2018, 04:57:03 PM
What do you want to achieve?
A transaction often contains a change address. I think disabling this setting does send the remaining coins 'back to the same address' ( means: sending address = change address).

If that's what you want to achieve with the command line, you'll have to built the transaction yourself with the paytomany command.

In your terminal:

Code:
electrum paytomany -F <Your_Sending_Address> -c <Your_Sending_Address> -f <Your_Fee> <Receipent_Address>


Note that you'll have to calculate the output + fee by hand prior executing this command if you are doing it this way.
Your fee simply is Input - Output(s).


That would be my first approach using the command line.
There is no option to disable change addresses. At least not that i am aware of.. 


Title: Re: Electrum disable use change address without UI.
Post by: Abdussamad on September 09, 2018, 12:05:20 AM
It's in the wallet file.  use_change = false. You can add it using jq:

Code:
jq ". + {use_change:false}" wallet_file