Elwar (OP)
Legendary
Offline
Activity: 3598
Merit: 2386
Viva Ut Vivas
|
|
November 22, 2013, 09:18:08 AM |
|
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.
|
|
|
gusti
Legendary
Offline
Activity: 1099
Merit: 1000
|
|
November 22, 2013, 09:19:41 AM |
|
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
|
|
November 22, 2013, 10:57:56 AM |
|
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
Activity: 1456
Merit: 1018
HoneybadgerOfMoney.com Weed4bitcoin.com
|
|
November 22, 2013, 11:04:26 AM |
|
I'm going to go with armory on this one.
|
|
|
|
kjj
Legendary
Offline
Activity: 1302
Merit: 1026
|
|
November 23, 2013, 03:10:43 AM |
|
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
Activity: 3598
Merit: 2386
Viva Ut Vivas
|
|
November 23, 2013, 07:56:24 AM |
|
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
Activity: 1302
Merit: 1026
|
|
November 23, 2013, 11:19:31 AM |
|
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
Activity: 3472
Merit: 4798
|
|
November 25, 2013, 07:44:06 PM |
|
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
|
|
November 25, 2013, 09:44:08 PM |
|
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
Activity: 1302
Merit: 1026
|
|
November 25, 2013, 10:21:50 PM |
|
|
17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8 I routinely ignore posters with paid advertising in their sigs. You should too.
|
|
|
|
apetersson
|
|
November 26, 2013, 04:50:43 PM |
|
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=1pDSzOiFgIkif 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
Activity: 3416
Merit: 1912
The Concierge of Crypto
|
|
October 22, 2014, 01:23:01 AM |
|
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
|
|
October 22, 2014, 03:55:27 AM |
|
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
|
|
October 22, 2014, 06:45:41 AM |
|
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
Activity: 3416
Merit: 1912
The Concierge of Crypto
|
|
October 22, 2014, 07:52:03 AM |
|
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
Activity: 1260
Merit: 1019
|
|
October 22, 2014, 08:10:55 AM |
|
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
Activity: 3416
Merit: 1912
The Concierge of Crypto
|
|
October 22, 2014, 08:19:54 AM |
|
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
Activity: 1260
Merit: 1019
|
|
October 22, 2014, 08:41:29 AM |
|
create & execute .bat file with lines like "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
|
|
October 27, 2014, 09:33:59 PM |
|
create & execute .bat file with lines like "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!
|
|
|
|
|