Bitcoin Forum
May 06, 2024, 08:42:21 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Electrum disable use change address without UI.  (Read 160 times)
tmp1 (OP)
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
September 08, 2018, 01:33:21 PM
 #1

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
1715028141
Hero Member
*
Offline Offline

Posts: 1715028141

View Profile Personal Message (Offline)

Ignore
1715028141
Reply with quote  #2

1715028141
Report to moderator
Bitcoin addresses contain a checksum, so it is very unlikely that mistyping an address will cause you to lose money.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bob123
Legendary
*
Offline Offline

Activity: 1624
Merit: 2481



View Profile WWW
September 08, 2018, 04:57:03 PM
 #2

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.. 

Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
September 09, 2018, 12:05:20 AM
Merited by pooya87 (1)
 #3

It's in the wallet file.  use_change = false. You can add it using jq:

Code:
jq ". + {use_change:false}" wallet_file
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!