Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a ledger-enabled account created outside of near wallet to the near wallet?

Tags:

nearprotocol

I have an account which was initially created via near-cli.

I then geneated a ledger key:

near generate-key key --useLedgerKey="44'/397'/0'/0'/2'"

And added it to the account:

near add-key <account_id> <the key from the previous step>

I now open the wallet, click "Access your account", "Ledger Recovery", "Sign in with Ledger", "Sign In".

At this stage it asks me to confirm the public key, though doesn't really show which public key I am approving. I approve it on the ledger.

It asks me for the account id, I enter it. It says "user found".

I confirm, and it errors out with "No accounts are associated with this Ledger device. You must first create an account, then add this Ledger to it to login."

How do I get around it? Am I using the wrong path when generating the key?

like image 778
Ishamael Avatar asked Oct 22 '25 04:10

Ishamael


2 Answers

Currently, the NEAR Wallet only supports the default Ledger path: "44'/397'/0'/0'/1'"

If you add the public key that corresponds to this HD path to your account, you should be able to login successfully.

near generate-key key --useLedgerKey="44'/397'/0'/0'/1'"

like image 130
Kendall Cole Avatar answered Oct 23 '25 17:10

Kendall Cole


Unfortunately this is not supported yet. Current Ledger support in wallet is limited to use 44'/397'/0'/0'/1' HD key path. This is going to change in later releases.

In the meanwhile if you want to stake your tokens from multiple such accounts you might find this tool useful: http://multistaker.near.org/

like image 29
Vlad Grichina Avatar answered Oct 23 '25 17:10

Vlad Grichina



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!