0.1.6 • Published 1 year ago

@leapwallet/leap-keychain-rn v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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