Hello,
I purchased some ether during the pre-sale and was sent a file with a backup wallet
When I try to import this ether with
eth --import-presale /home/bitcoiner/Downloads/ethereum_wallet_backup.json
this prints out
(anonymous): Line 1:7 Unexpected reserved word
I also tried with
> geth wallet import /home/bitcoiner/Downloads/ethereum_wallet_backup.json
get this out
(anonymous): Line 1:6 Unexpected identifier (and 1 more errors)
Also, I entered my email to check balance and got
"no free outputs to spend"
this is strange..
Can I get some help getting my ether imported?
0 ·
Answers
>cat /home/bitcoiner/Downloads/ethereum_wallet_backup.json|tr ',' '\n' |cut -d: -f1
{"encseed"
"bkp"
"ethaddr"
"btcaddr"
"email"
(anonymous): Line 1:4 Unexpected token ~ (and 2 more errors)
(anonymous): Line 1:4 Unexpected token ~ (and 2 more errors)
cat ~/Downloads/ethereum_wallet_backup.json tr ',' '\n' |cut -d: -f1
cat: {
"bkp"
"btcaddr"
"email"
tr "encseed"
"ethaddr"
: No such file or directory
cat: ,: No such file or directory
cat: \n: No such file or directory
}
~ $ cat ~/Downloads/ethereum_wallet_backup.json tr ',' '\n' |cut -d: -f1
{
"bkp"
cat: "btcaddr"
"email"
tr "encseed"
"ethaddr"
: No such file or directory
cat: ,: No such file or directory
cat: \n: No such file or directory
}
Here is the command again, without the prompt:
cat /home/bitcoiner/Downloads/ethereum_wallet_backup.json | tr ',' '\n'|cut -d: -f1
somehow you lost the pipe '|' above. Even so, it is looking like you have the appropriate fields. Note: be careful, I just asked you *some* of the contents of your file, make sure you don't post the actual values anywhere public.
So I was just wondering if the file was somehow corrupted, you saw it seems to conform, according to your json editor.
Unsure, but the filename may be important, and you have changed it from the initial address to '_backup' .
Can you rename and have success? I don't know if that is even a valid concern, but its easy to check
{
"bkp"
"btcaddr"
"email"
"encseed"
"ethaddr"
}
> geth wallet import ~/Downloads/ethereum.json
(anonymous): Line 1:6 Unexpected identifier (and 1 more errors)
But the error you receive looks like its a formatting issue with the file as the parser seems to bail.
check your file again, make sure that each key:value pair is well-formed,
aka "key":"value",
note the dbl-quotes around the "key" AND the "value", note they are separated by a colon ':' and that the next
"key":"value" pair, and every pair thereafter, is seperated by a comma ','.
The file must begin with a curly-brace '{'
and must end with its mate '}'
{"bkp": "***", "btcaddr": "***", "email": "***", "encseed": "***", "ethaddr": "***"}
https://etherchain.org/api/account/0x
https://etherchain.org/api/account/0xETHADDR_HERE
{"status":1,"data":[{"address":"0x__your_ethaddr_here","balance":10101010103234455,"nonce":"0","code":"0x","name":null,"storage":null}]}
I think the errors you see come from here:
go-ethereum/Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser_test.go
and I don't see the exact error you mention above, for geth:
(anonymous): Line 1:6 Unexpected identifier (and 1 more errors)
So it seems that that error is no longer in the repo.
how do i check what version it is?
geth [global options] command [command options] [arguments...]
VERSION:
1.0.1