Bitcoin Forum
May 14, 2024, 02:15:14 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Import specific deterministic address; any way to do this?  (Read 451 times)
theonewhowaskazu (OP)
Sr. Member
****
Offline Offline

Activity: 448
Merit: 250


View Profile
January 16, 2015, 04:08:14 AM
 #1

Hello lets say I have 4 addresses used on Electrum

But one is address number 1 (i.e, first one generated from this seed), another is address number 15, another is address number 100, and another is address number 2000.

I could scan for all these addresses by doing gap-limit 2000. But then synchronizing would take very long time. But in my case I know that address is 1, 15, 100, and 2000. So any way to just import those, without checking for all the other unneeded addresses 1-2000?

Thanks.

1715696114
Hero Member
*
Offline Offline

Posts: 1715696114

View Profile Personal Message (Offline)

Ignore
1715696114
Reply with quote  #2

1715696114
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715696114
Hero Member
*
Offline Offline

Posts: 1715696114

View Profile Personal Message (Offline)

Ignore
1715696114
Reply with quote  #2

1715696114
Report to moderator
Abdussamad
Legendary
*
Offline Offline

Activity: 3612
Merit: 1564



View Profile
January 16, 2015, 05:49:54 AM
Last edit: January 16, 2015, 09:44:36 AM by Abdussamad
 #2

Assuming you are using electrum 1.9.8, find the file mnemonic.py and run it with your mnemonic:

Run this:

Code:
electrum getseed

It will spit out a hex number. Pass that onto pybitcoin tools and it will tell you the address specific private key which you can import into any wallet:

Code:
git clone https://github.com/vbuterin/pybitcointools
pybtctool electrum_privkey <seed in hex> <index number> 0
pybtctool electrum_privkey 484ccb566edb66c65dd0fd2e4d90ef65 0 0 #example


If you need to convert between hex encoded private keys and WIF ones just use encode_privkey. So again:

Code:
pybtctool electrum_privkey f45xxxx...xe3c  0 0  | pybtctool -s encode_privkey wif
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!