Skip to content

leapwallet/leap-keychain-rn

Repository files navigation

react-native-leap-keychain-rn

Key management library for react native apps

Installation

Use one of the following methods:

  • npm:
    npm i @leapwallet/leap-keychain-rn
  • Yarn:
    yarn add @leapwallet/leap-keychain-rn

Usage

  import { KeyChain } from '@leapwallet/leap-keychain-rn'

  // create wallet using mnemonic

  KeyChain.createWalletUsingMnemonic({
    mnemonic: "12/24 word mnemonic",
    name: "wallet name";
    password: "encryption password";
    addressIndex: "address index";
    colorIndex: "0";
    chainInfos: {
      //The 'chain infos' object includes the address prefix and coin type for the chains for which wallet creation is required.
      cosmos: {
        addressPrefix: 'cosmos',
        coinType: '118',
        key: 'cosmos'
      }
    };
  })
  

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published