Author

Topic: Importing multiple Private keys. (Read 1250 times)

member
Activity: 107
Merit: 10
if you want to lie *cough*use your data; not mine.
September 08, 2018, 08:32:49 PM
#11
okay i am somewhat lost on this.....

i import my privkey and scans the blockchain... shows available balance.. but when i do it again adding another it re scans and then doesnt show it?
i try to add the 1st one again and comes back with null meaning i assume is already added so how come it inst showing the balance still?

electrum shows balences but when i try to spend from them it comes back server didnt respond... i dont know why... and always wants to sync...

So if i do whats outlined here and it scans it once with all the keys is it going to show the correct balances?

member
Activity: 112
Merit: 10
January 28, 2016, 08:29:39 PM
#10
Where are you copying these keys from? It could be the application you copied from is representing newlines with incompatible control characters? Try pasting the keys into a different text editor and enable "Show Line Endings", or something to that effect. Windows typically feeds newlines as CRLF (Carriage Return, Line Feed), Linux is usually just LF.
full member
Activity: 149
Merit: 100
January 28, 2016, 08:02:20 PM
#9
The original Bitcoin Core client can bulk import from a text file, if that text file is actually a batch file with RPC commands:

Code:
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M importedaddress1 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 importedaddress2 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 importedaddress3 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF importedaddress4 true

With some text editing you can make your list of privkeys into such a list of commands, and save it as import.cmd and run (notice the last line has "true" at the end to start reindexing).

Oh that sounds useful aswell, might try it!

Thanks a lot deepceleron!
legendary
Activity: 1512
Merit: 1036
January 28, 2016, 07:54:42 PM
#8
The original Bitcoin Core client can bulk import from a text file, if that text file is actually a batch file with RPC commands:

Code:
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey L4mP3joYEhSv1ofdsWbz8xEmqCmYK9vGyi8mJmWWbh79Xx2NsS1M importedaddress1 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey Ky2EGjWLhfKv1sWnPcuN4SHF2iALj6SfK7hoLWKx5T4zMqXg7aT9 importedaddress2 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey KzrZ4DULdVWFqpF48pdJicFJfX5dqrhxBkqDnT4HRkCswdFy3Eo4 importedaddress3 false
"C:\Program Files\Bitcoin\daemon\bitcoin-cli.exe" importprivkey L2ELWXewr1PQnMwFDpfobHFqspyM6g1noM4uzkCMgoSZTSf3sQJF importedaddress4 true

With some text editing you can make your list of privkeys into such a list of commands, and save it as import.cmd and run (notice the last line has "true" at the end to start reindexing).
full member
Activity: 149
Merit: 100
January 28, 2016, 07:51:06 PM
#7
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked

No ofcourse not  Grin as I said they have already been imported with blockchain but was just asking people to check if they could import the given keys with electrum as I keep getting an error message.
Works fine for me. How are you importing them? I made a new wallet from those imported keys.

Are you using electrum?
Yes.

so I just go wallet- private keys - import and I add the keys but it gives me an error message saying they can't be added.
So I thought ok must be a wrong key, but then blockchain can import it.
So strange..
Any other clients you know that support bulk importing perhaps?
staff
Activity: 3458
Merit: 6793
Just writing some code
January 28, 2016, 07:45:53 PM
#6
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked

No ofcourse not  Grin as I said they have already been imported with blockchain but was just asking people to check if they could import the given keys with electrum as I keep getting an error message.
Works fine for me. How are you importing them? I made a new wallet from those imported keys.

Are you using electrum?
Yes.
full member
Activity: 149
Merit: 100
January 28, 2016, 07:30:50 PM
#5
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked

No ofcourse not  Grin as I said they have already been imported with blockchain but was just asking people to check if they could import the given keys with electrum as I keep getting an error message.
Works fine for me. How are you importing them? I made a new wallet from those imported keys.

Are you using electrum?
staff
Activity: 3458
Merit: 6793
Just writing some code
January 28, 2016, 07:29:24 PM
#4
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked

No ofcourse not  Grin as I said they have already been imported with blockchain but was just asking people to check if they could import the given keys with electrum as I keep getting an error message.
Works fine for me. How are you importing them? I made a new wallet from those imported keys.
full member
Activity: 149
Merit: 100
January 28, 2016, 07:24:05 PM
#3
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked

No ofcourse not  Grin as I said they have already been imported with blockchain but was just asking people to check if they could import the given keys with electrum as I keep getting an error message.
hero member
Activity: 1106
Merit: 521
January 28, 2016, 07:21:35 PM
#2
I do hope you have no bitcoin at them addresses........ if you do there probably gone already  Shocked
full member
Activity: 149
Merit: 100
January 28, 2016, 07:18:19 PM
#1
Hi, does anyone know which wallet/client allows multiple private keys to be imported at once?

Not like blockchain.info which imports 1 by 1.

Also tried electrum client as you can paste multiple keys at once, but it always says my private keys are invalid, anyone know a solution to that?

here are a couple of private keys which electrum states are invalid but blockchain imports without a problem.

5J7cVicrWJP2wZ1Sp2eqFJmWpCh1wEG5XEQmqSh89bEBzV7iExd
5Hx6zbgjtC6ouqi96YkQEB4ojp8Xg3JakaBEXna5Z2ymHM5aGdh
5KS1wBgCUhvW6Cr2kxu1dgnszHfNzGdfKzCaVDndaFLWbvKzQYU

So any tips/advice?

thanks!
Jump to: