Bitcoin Forum
April 25, 2024, 12:46:29 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [1 BTC bounty] Remove address from Bitcoin Core wallet  (Read 2720 times)
makemedoit (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 31, 2015, 12:40:56 PM
 #1

I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove <address> justanotherduckwallet.dat
shutmyduck add <privkey> duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.
1714005989
Hero Member
*
Offline Offline

Posts: 1714005989

View Profile Personal Message (Offline)

Ignore
1714005989
Reply with quote  #2

1714005989
Report to moderator
1714005989
Hero Member
*
Offline Offline

Posts: 1714005989

View Profile Personal Message (Offline)

Ignore
1714005989
Reply with quote  #2

1714005989
Report to moderator
In order to achieve higher forum ranks, you need both activity points and merit points.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714005989
Hero Member
*
Offline Offline

Posts: 1714005989

View Profile Personal Message (Offline)

Ignore
1714005989
Reply with quote  #2

1714005989
Report to moderator
1714005989
Hero Member
*
Offline Offline

Posts: 1714005989

View Profile Personal Message (Offline)

Ignore
1714005989
Reply with quote  #2

1714005989
Report to moderator
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
January 31, 2015, 12:48:07 PM
 #2

At least removing is possible with pywallet... There's a specific part for removing keys there Smiley

edit: http://www.devtome.com/doku.php?id=pywallet#delete_addresses_from_your_wallet
makemedoit (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 31, 2015, 12:51:33 PM
 #3

At least removing is possible with pywallet... There's a specific part for removing keys there Smiley

edit: http://www.devtome.com/doku.php?id=pywallet#delete_addresses_from_your_wallet

Thank you, but this does not seem to be available from command line?
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
January 31, 2015, 12:56:29 PM
 #4

I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove <address> justanotherduckwallet.dat
shutmyduck add <privkey> duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.


I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
January 31, 2015, 12:58:52 PM
 #5

I need from command line (linux) be able to remove specified address and the private key from a bitcoin core wallet.dat
The same needed to add private key to a wallet.dat from command line, do not want bitcoin-cli importprivkey with it triggets a rescan of the blockchain time consume.

example:

shutmyduck remove <address> justanotherduckwallet.dat
shutmyduck add <privkey> duckwallet.dat

if this is already possible with pywallet just show me exactly how to do it and i will pay you.


I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.

Yes, it will rescan it to check for transactions anyway

As for command line options, there's only --importprivkey ou --importhex, noone for removing keys AFAIK Smiley
makemedoit (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 31, 2015, 01:04:25 PM
 #6

I believe adding will have to rescan the blocks otherwise it wont know how many funds are in the address I think.


Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.

Is there anyway to add a private key without trigging the rescan? What if i know that the address has not been used before and i dont care about stupid rescan?
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
January 31, 2015, 04:28:58 PM
 #7

Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.
S4VV4S
Hero Member
*****
Offline Offline

Activity: 1582
Merit: 502


View Profile
January 31, 2015, 05:19:22 PM
 #8

Escrow the 1BTC and you are bound to find a solution....

It is not that hard  Wink

Escrow first please  Grin
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1005


View Profile
January 31, 2015, 05:28:28 PM
 #9

Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.


Yep, just found about that and came here to post this Smiley Very useful, wasn't aware of this option!
icanscript
Hero Member
*****
Offline Offline

Activity: 686
Merit: 502



View Profile
January 31, 2015, 07:30:56 PM
 #10

Not a good idea to add 10000 addresses using importprivkey when each import triggers a full rescan.
At least with pywallet i could add the addresses and then bitcoin core could rescan when i start it, but not for each import, it would take a week.
No.
Code:
importprivkey 5gfasgfsgfd name1 false
importprivkey 5jhdhgfhghf name2 false
importprivkey 5gfgdssdgfd name3 false
importprivkey 5gtsgggggdg name4 false
importprivkey 5fgdgfdgfgf name5 true
the last true triggers the scan. the other disable it. the rescan will scan for all keys.


Yep, just found about that and came here to post this Smiley Very useful, wasn't aware of this option!

Nice Solution
brituspol
Sr. Member
****
Offline Offline

Activity: 458
Merit: 250

From nothing to nothing


View Profile
February 01, 2015, 09:48:57 PM
 #11

Use false to all addresses except the last with true.
makemedoit (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
February 03, 2015, 09:23:18 PM
 #12

Alright, thanks for the importprivkey solution, that was stupid of me to not find myself... Should i give 0.5 BTC for that solution or what is the deal here as it was 1 of 2 questions?

What about the removeprivkey ? anyone have a solution for that?

In a PM i got this https://bitcoin.stackexchange.com/questions/3654/what-is-the-best-way-to-recover-from-an-accidental-double-spend/3657#3657
I dont know how to compile bitcoin core with "pull #220" and if its compatible with 0.9.4...
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!