Bitcoin Forum
November 19, 2017, 06:18:24 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 »  All
  Print  
Author Topic: Best client for importing multiple private keys?  (Read 7644 times)
Elwar
Legendary
*
Offline Offline

Activity: 2282


www.bitpools.com


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.

http://www.bitpools.com
Pool your bitcoins with others. Vote on solutions using the Bitcoin blockchain. Keep your bitcoins in your cold storage until you find a solution you like.
Links and Reviews of useful every day places to spend bitcoins: https://bitcointalk.org/index.php?topic=943143.0
1511115504
Hero Member
*
Offline Offline

Posts: 1511115504

View Profile Personal Message (Offline)

Ignore
1511115504
Reply with quote  #2

1511115504
Report to moderator
1511115504
Hero Member
*
Offline Offline

Posts: 1511115504

View Profile Personal Message (Offline)

Ignore
1511115504
Reply with quote  #2

1511115504
Report to moderator
Join ICO Now A blockchain platform for effective freelancing
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511115504
Hero Member
*
Offline Offline

Posts: 1511115504

View Profile Personal Message (Offline)

Ignore
1511115504
Reply with quote  #2

1511115504
Report to moderator
1511115504
Hero Member
*
Offline Offline

Posts: 1511115504

View Profile Personal Message (Offline)

Ignore
1511115504
Reply with quote  #2

1511115504
Report to moderator
1511115504
Hero Member
*
Offline Offline

Posts: 1511115504

View Profile Personal Message (Offline)

Ignore
1511115504
Reply with quote  #2

1511115504
Report to moderator
gusti
Legendary
*
Offline Offline

Activity: 1102


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


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: 1064


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



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?

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
Elwar
Legendary
*
Offline Offline

Activity: 2282


www.bitpools.com


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.

http://www.bitpools.com
Pool your bitcoins with others. Vote on solutions using the Bitcoin blockchain. Keep your bitcoins in your cold storage until you find a solution you like.
Links and Reviews of useful every day places to spend bitcoins: https://bitcointalk.org/index.php?topic=943143.0
kjj
Legendary
*
Offline Offline

Activity: 1302



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.

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
DannyHamilton
Legendary
*
Offline Offline

Activity: 1974



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


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



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

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

p2pcoin: a USB/CD/PXE p2pool miner - 1N8ZXx2cuMzqBYSK72X4DAy1UdDbZQNPLf - todo
I routinely ignore posters with paid advertising in their sigs.  You should too.
mccoyspace
Full Member
***
Offline Offline

Activity: 237


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


ty
apetersson
Hero Member
*****
Offline Offline

Activity: 666



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: 1862



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


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: 334


UNIVERSA - BLOCKCHAIN FOR BUSINESS


View Profile
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: 1862



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


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: 1862



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


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: 588


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!