Bitcoin Forum
October 15, 2018, 04:26:28 PM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Best client for importing multiple private keys?  (Read 8150 times)
Elwar
Legendary
*
Offline Offline

Activity: 2618
Merit: 1257


www.varyon.io


View Profile WWW
November 22, 2013, 09:18:08 AM
 #1

I am looking to automate a process of importing a private key to a client, send a certain amount from the client then delete the private key before moving on to the next private key.

Currently I am figuring I can set up a fresh wallet.dat, import a private key and send the BTC, then overwrite the wallet.dat with a copy of the fresh wallet.dat.

There should be a better way.

                     ▄▓▓▓▓    ▄▓█▓▄
                  ▄▓██████    ██████▓▄
                ▐████████▓    ▓████████▌
            ▄▓▓▄ ▀██▓▀▀▀         ▀▀▓██▓ ▄▓▓▄
         ▄▓█████▌ ▄▄▓▓██▓▌     ▓██▓▓▄▄ ▐█████▓▄
       ▓███████▀▄▓███████▌    ▐███████▓▄▀▓██████▓
       ▓█████▓ ▓█████████▌     █████████▓ ▓█████▓
               ▀▓████████      █████████▓
     ▄▄             ▀▀▀▀▀       ▀▀▀▀             ▄▄
    ▓████▓▓                                  ▄▓█████
    ▐██████ ▄▓█▓▓▄▄                   ▄▄▓▓▓▓ ██████▌
     ▓█████ ████████▓▓            ▄▓████████ █████▓
      ▓███▓ █████████▓            ▓█████████ ▓████
            ▀███████▀               ▓██████▀
        ▓███▓ ▓███▓      ▄▓██▓▄      ▓███▓ ▓███▓
        ▓█████▄        ▄▓██████▓▄        ▄▓████▓
         ██████▓      ▓██████████▓      ▐██████
         ▐████▓       ▀▓████████▓▀       ▓████▌
           ▀▀▀    ▄▓██▓▓▄▄ ▀▀ ▄▄▓▓███▓     ▀▀▀
                 ▓█████████  ██████████▄
                 ▓▓██████▓▓  ▀▓██████▓▓
██
██
██
██
██
██
██
██
██
██
██
██
██
██
.......Social Media.......
██▄▓█████████████████████▓▓▄
▓██████████████████████████▌
███████████████████▓▓▀  ▓██▌
██████████████▓▀▀       ▓██▌
████████▓▀▀      ▄█    ▐███▌
███▓▀        ▄▄▓▀      ▓███▌
███▓▄▄▄   ▄▓█▓         ████▌
████████▓ ▓▌          ▓████▌
█████████▓    ▄       █████▌
██████████▌ ▄▓██▓▄   ▐█████▌
███████████████████▓▓██████▌
▐██████████████████████████
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▄███████████████████▄
██████████████████████▌
██████████████████████▌
████████████     █▀███▌
███   █████        ▐██▌
███               ▐███▌
███               ████▌
████             █████▌
█████▄▄         ██████▌
████         ▄████████▌
██████████████████████▌
██████████████████████▌
██
██
██
██
██
██
██
██
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539620788
Hero Member
*
Offline Offline

Posts: 1539620788

View Profile Personal Message (Offline)

Ignore
1539620788
Reply with quote  #2

1539620788
Report to moderator
1539620788
Hero Member
*
Offline Offline

Posts: 1539620788

View Profile Personal Message (Offline)

Ignore
1539620788
Reply with quote  #2

1539620788
Report to moderator
gusti
Legendary
*
Offline Offline

Activity: 1102
Merit: 1000


View Profile
November 22, 2013, 09:19:41 AM
 #2

I am looking to automate a process of importing a private key to a client, send a certain amount from the client then delete the private key before moving on to the next private key.

Currently I am figuring I can set up a fresh wallet.dat, import a private key and send the BTC, then overwrite the wallet.dat with a copy of the fresh wallet.dat.

There should be a better way.

bitcoind with proper scripting will do it.

If you don't own the private keys, you don't own the coins.
/dev/null
Sr. Member
****
Offline Offline

Activity: 308
Merit: 250


View Profile
November 22, 2013, 10:57:56 AM
 #3

Electrum is much easy. Import private key, send funds, freeze that key, import new one, and repeat the process. Or simply import all keys at once.


But that's not automated.

frankenmint
Legendary
*
Offline Offline

Activity: 1190
Merit: 1000


HoneybadgerOfMoney.com Weed4bitcoin.com


View Profile WWW
November 22, 2013, 11:04:26 AM
 #4

I'm going to go with armory on this one.

kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1001



View Profile
November 23, 2013, 03:10:43 AM
 #5

Dare I ask why you are deleting the key?

Are you really that sure that no one will re-use one?

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
Elwar
Legendary
*
Offline Offline

Activity: 2618
Merit: 1257


www.varyon.io


View Profile WWW
November 23, 2013, 07:56:24 AM
 #6

Dare I ask why you are deleting the key?

Are you really that sure that no one will re-use one?

The private keys will still be available in cold storage.

                     ▄▓▓▓▓    ▄▓█▓▄
                  ▄▓██████    ██████▓▄
                ▐████████▓    ▓████████▌
            ▄▓▓▄ ▀██▓▀▀▀         ▀▀▓██▓ ▄▓▓▄
         ▄▓█████▌ ▄▄▓▓██▓▌     ▓██▓▓▄▄ ▐█████▓▄
       ▓███████▀▄▓███████▌    ▐███████▓▄▀▓██████▓
       ▓█████▓ ▓█████████▌     █████████▓ ▓█████▓
               ▀▓████████      █████████▓
     ▄▄             ▀▀▀▀▀       ▀▀▀▀             ▄▄
    ▓████▓▓                                  ▄▓█████
    ▐██████ ▄▓█▓▓▄▄                   ▄▄▓▓▓▓ ██████▌
     ▓█████ ████████▓▓            ▄▓████████ █████▓
      ▓███▓ █████████▓            ▓█████████ ▓████
            ▀███████▀               ▓██████▀
        ▓███▓ ▓███▓      ▄▓██▓▄      ▓███▓ ▓███▓
        ▓█████▄        ▄▓██████▓▄        ▄▓████▓
         ██████▓      ▓██████████▓      ▐██████
         ▐████▓       ▀▓████████▓▀       ▓████▌
           ▀▀▀    ▄▓██▓▓▄▄ ▀▀ ▄▄▓▓███▓     ▀▀▀
                 ▓█████████  ██████████▄
                 ▓▓██████▓▓  ▀▓██████▓▓
██
██
██
██
██
██
██
██
██
██
██
██
██
██
.......Social Media.......
██▄▓█████████████████████▓▓▄
▓██████████████████████████▌
███████████████████▓▓▀  ▓██▌
██████████████▓▀▀       ▓██▌
████████▓▀▀      ▄█    ▐███▌
███▓▀        ▄▄▓▀      ▓███▌
███▓▄▄▄   ▄▓█▓         ████▌
████████▓ ▓▌          ▓████▌
█████████▓    ▄       █████▌
██████████▌ ▄▓██▓▄   ▐█████▌
███████████████████▓▓██████▌
▐██████████████████████████
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▄███████████████████▄
██████████████████████▌
██████████████████████▌
████████████     █▀███▌
███   █████        ▐██▌
███               ▐███▌
███               ████▌
████             █████▌
█████▄▄         ██████▌
████         ▄████████▌
██████████████████████▌
██████████████████████▌
██
██
██
██
██
██
██
██
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1001



View Profile
November 23, 2013, 11:19:31 AM
 #7

In that case, don't bother importing or deleting.  Just use the raw transaction API to create, sign and send the transaction.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
DannyHamilton
Legendary
*
Offline Offline

Activity: 2198
Merit: 1381



View Profile
November 25, 2013, 07:44:06 PM
 #8

In that case, don't bother importing or deleting.  Just use the raw transaction API to create, sign and send the transaction.

Agreed.

Don't import private keys. That is far too slow. Just use them to sign raw transactions.

mccoyspace
Full Member
***
Offline Offline

Activity: 237
Merit: 100


View Profile WWW
November 25, 2013, 09:44:08 PM
 #9

In that case, don't bother importing or deleting.  Just use the raw transaction API to create, sign and send the transaction.

Agreed.

Don't import private keys. That is far too slow. Just use them to sign raw transactions.

Can anyone point to any howtos for something like this?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1001



View Profile
November 25, 2013, 10:21:50 PM
 #10

https://en.bitcoin.it/wiki/Raw_Transactions

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
mccoyspace
Full Member
***
Offline Offline

Activity: 237
Merit: 100


View Profile WWW
November 26, 2013, 04:42:50 PM
 #11


ty
apetersson
Hero Member
*****
Offline Offline

Activity: 666
Merit: 500



View Profile
November 26, 2013, 04:50:43 PM
 #12

try Mycelium. we specifically support this usecase. With the cold storage spend wizard one keysweep takes about 10 seconds.

see this video demonstration: https://www.youtube.com/watch?v=1pDSzOiFgIk

if you want to import keys in bulk, you can have up to 10 keys imported in the "active" section at once and send 1 transaction from those keys.
Dabs
Staff
Legendary
*
Offline Offline

Activity: 2142
Merit: 1105



View Profile
October 22, 2014, 01:23:01 AM
 #13

Sorry for the necro-bump, but is there a way to bulk import a few thousand keys into an encrypted wallet.dat (Bitcoin Core wallet, version 0.9.3)?

What I'm trying to do:

1. brand new wallet.dat (I call it empty.dat)
2. encrypt it with crazy long password
3. import keys using bitcoin-cli / bitcoind

However, I need to import a few thousand keys.

Escrow Service (Services) - GPG ID: 32AD7565, OTC ID: Dabs
All messages concerning escrow or with bitcoin addresses are GPG signed. Please verify.
CompTIA A+, Microsoft Certified Professional, MCSA: Windows 10; Windows Server 2012, MCSE: Cloud Platform and Infrastructure; Productivity; Messaging
687_2
Full Member
***
Offline Offline

Activity: 164
Merit: 100


View Profile
October 22, 2014, 03:55:27 AM
 #14

Sorry for the necro-bump, but is there a way to bulk import a few thousand keys into an encrypted wallet.dat (Bitcoin Core wallet, version 0.9.3)?

What I'm trying to do:

1. brand new wallet.dat (I call it empty.dat)
2. encrypt it with crazy long password
3. import keys using bitcoin-cli / bitcoind

However, I need to import a few thousand keys.

I solved this problem just the other day with Multibit. You can work with everything in .csv format and edit the file in Excel.

Biitcoin
Sr. Member
****
Offline Offline

Activity: 355
Merit: 250


Zichain


View Profile WWW
October 22, 2014, 06:45:41 AM
 #15

I would personally recommend Electrum , really easy to do what you asking for . but know that imported keys are not recoverable from seed

Dabs
Staff
Legendary
*
Offline Offline

Activity: 2142
Merit: 1105



View Profile
October 22, 2014, 07:52:03 AM
 #16

ahh.. no no. I need to import them into Bitcoin Core wallet.dat. Because it's going to run on a server as a full node.

Escrow Service (Services) - GPG ID: 32AD7565, OTC ID: Dabs
All messages concerning escrow or with bitcoin addresses are GPG signed. Please verify.
CompTIA A+, Microsoft Certified Professional, MCSA: Windows 10; Windows Server 2012, MCSE: Cloud Platform and Infrastructure; Productivity; Messaging
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000


View Profile
October 22, 2014, 08:10:55 AM
 #17

Sorry for the necro-bump, but is there a way to bulk import a few thousand keys into an encrypted wallet.dat (Bitcoin Core wallet, version 0.9.3)?

What I'm trying to do:

1. brand new wallet.dat (I call it empty.dat)
2. encrypt it with crazy long password
3. import keys using bitcoin-cli / bitcoind

However, I need to import a few thousand keys.

Why not to
1. create new wallet.dat on offline computer even with no blockchain
2. import keys using bitcoin-cli / bitcoind
3. encrypt it with crazy long password
4. move wallet.dat to server

Dabs
Staff
Legendary
*
Offline Offline

Activity: 2142
Merit: 1105



View Profile
October 22, 2014, 08:19:54 AM
 #18

Yes, that's the idea. But I need to import 5000~10000 keys. I don't want to be doing that one by one.

Escrow Service (Services) - GPG ID: 32AD7565, OTC ID: Dabs
All messages concerning escrow or with bitcoin addresses are GPG signed. Please verify.
CompTIA A+, Microsoft Certified Professional, MCSA: Windows 10; Windows Server 2012, MCSE: Cloud Platform and Infrastructure; Productivity; Messaging
amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000


View Profile
October 22, 2014, 08:41:29 AM
 #19

create & execute .bat file with lines like

Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M addr-1DfyaDvr-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 addr-1DfyaDvr-2 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 addr-1DfyaDvr-3 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF addr-1DfyaDvr-4 false
...
micax1
Hero Member
*****
Offline Offline

Activity: 672
Merit: 500


View Profile
October 27, 2014, 09:33:59 PM
 #20

create & execute .bat file with lines like

Code:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M addr-1DfyaDvr-1 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 addr-1DfyaDvr-2 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 addr-1DfyaDvr-3 false
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF addr-1DfyaDvr-4 false
...


each string will trigger whole blockchain rescan

is there a way to import in bulk?
like:
"C:\Program Files\Bitcoin\daemon\bitcoind.exe" importprivkey key1 key2 key3

to trigger just 1 rescan to save time?

Thank you guys if anybody knows answer!
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!