near-api-js icon indicating copy to clipboard operation
near-api-js copied to clipboard

How to use Ledger hardware wallet with near-api-js

Open ryancwalsh opened this issue 2 years ago • 2 comments

I see it proposed at https://github.com/near/near-api-js/issues/259#issuecomment-810631769

Is there any way to use Ledger with near-api-js?

I also found https://github.com/near/near-ledger-js/, but I haven't found documentation about any possible relationship between that repo and this one.

Thanks.

ryancwalsh avatar Nov 15 '22 17:11 ryancwalsh

Is there any way to use Ledger with near-api-js?

Currently the only implementation I'm aware of is in near-cli - using the --useLedgerKey flag in conjunction with a command requiring signing will prompt on a connected ledger.

There is a PR under review to unblock development of this functionality that will require a major release, as the methods around retrieving keys must be asynchronous to support hardware keystores. Once released we will be able to implement a new LedgerKeyStore as referenced in #259

This is on the backlog for near-api-js in Jira but I don't believe it was synced via Exalate.

andy-haynes avatar Nov 19 '22 00:11 andy-haynes

@andy-haynes Thanks for the update!

ryancwalsh avatar Nov 21 '22 14:11 ryancwalsh