Bitcoin Forum
March 19, 2024, 04:25:36 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Best client for importing multiple private keys?  (Read 8378 times)
Elwar (OP)
Legendary
*
Offline Offline

Activity: 3598
Merit: 2384


Viva Ut Vivas


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.

First seastead company actually selling sea homes: Ocean Builders https://ocean.builders  Of course we accept bitcoin.
1710822336
Hero Member
*
Offline Offline

Posts: 1710822336

View Profile Personal Message (Offline)

Ignore
1710822336
Reply with quote  #2

1710822336
Report to moderator
BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1710822336
Hero Member
*
Offline Offline

Posts: 1710822336

View Profile Personal Message (Offline)

Ignore
1710822336
Reply with quote  #2

1710822336
Report to moderator
1710822336
Hero Member
*
Offline Offline

Posts: 1710822336

View Profile Personal Message (Offline)

Ignore
1710822336
Reply with quote  #2

1710822336
Report to moderator
gusti
Legendary
*
Offline Offline

Activity: 1099
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: 1456
Merit: 1018


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



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 (OP)
Legendary
*
Offline Offline

Activity: 3598
Merit: 2384


Viva Ut Vivas


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.

First seastead company actually selling sea homes: Ocean Builders https://ocean.builders  Of course we accept bitcoin.
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1024



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: 3332
Merit: 4492



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


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



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


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


ty
apetersson
Hero Member
*****
Offline Offline

Activity: 668
Merit: 501



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
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


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.

687_2
Full Member
***
Offline Offline

Activity: 173
Merit: 105



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.


Buy the dip with the security and privacy of your own wallet: use cross chain atomic swaps to trade Bitcoin, USDT, and Ether. Trades are secured and settled on-chain. https://sibex.io
Biitcoin
Sr. Member
****
Offline Offline

Activity: 353
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
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


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.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


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
Legendary
*
Offline Offline

Activity: 3416
Merit: 1912


The Concierge of Crypto


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.

amaclin
Legendary
*
Offline Offline

Activity: 1260
Merit: 1019


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: 708
Merit: 502


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:  

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