I have my node up and bootstrapped. I generated key by cmd sudo -u tezos tezos-client activate account 'ALIAS'. Now I just created account on terminal that's why seems like there is no need to import account as import account shows me "Account already exist".

I'm trying the command to register with this one sudo -u tezos tezos-client register key testy12 as delegate but this shows me error like below.

Erroneous command line argument 3 (testy12).
  no public key hash alias named testy12
  cannot read file (Unix.Unix_error(Unix.ENOENT, "open", "testy12"))
  Failed to read a b58check_encoding data (Signature.Public_key_hash): "testy12"

I checked there is file inside the .tezos-client with public key hash already exist. Is that because of 0 fund in pub key?

If I try with the pubkey hash like this sudo -u tezos tezos-client register key tz1NhTmL9AuetbQrAg3daigDoXcqx7K6ewA9 as delegate It says no keys for the source contract tz1NhTmL9AuetbQrAg3daigDoXcqx7K6ewA9

1 Answer 1


There was mistake while importing account. Need to perform the below command to import the key first. sudo -u tezos tezos-client import secret key testy12 encrypted:YOUR_ENCRYPTEDKEY

and then need to perform the command sudo -u tezos tezos-client register key testy12 as delegate

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.