How to use near-ledger-js - 1 common examples

To help you get started, we’ve selected a few near-ledger-js examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nearprotocol / near-wallet / src / utils / wallet.js View on Github external
async addLedgerAccessKey(accountId) {
      const client = await createClient()
      window.client = client
      const rawPublicKey = await client.getPublicKey()
      const publicKey = new PublicKey(KeyType.ED25519, rawPublicKey)
      await setKeyMeta(publicKey, { type: 'ledger' })
      return await this.getAccount(accountId).addKey(publicKey)  
   }

near-ledger-js

Connect to NEAR Ledger app from browser

MIT
Latest version published 2 years ago

Package Health Score

43 / 100
Full package analysis

Popular near-ledger-js functions

Similar packages