@coingrig/wallet-generator
TypeScript icon, indicating that this package has built-in type declarations

0.1.7 • Public • Published

@coingrig/wallet-generator

Blazing ⚡️ Fast BTC and ETH Wallet Generator library for React Native, Android and iOS. This is a high performance native library written in GO.

Todo:

  • [x] Bitcoin (segwit)
  • [x] Ethereum
  • [ ] Bitcoin Cash
  • [ ] Litecoin
  • [ ] Doge
  • [ ] Egold (Elrond)
  • [ ] Solana
  • [ ] Dash
  • [ ] Ethereum Clasic

React Native

Installation

npm install @coingrig/wallet-generator

Usage

import { generateMnemonic, generateWallet } from '@coingrig/wallet-generator';

// Generate mnemonic
const words = 12; // or 24
const mnemonic = await generateMnemonic(words);

// Generate wallet
const chain = 'BTC' // or ETH
let wallet = await generateWallet(mnemonic, chain);
wallet = JSON.parse(wallet);
console.log(wallet.address, wallet.privateKey);

Native - Android and iOS (Java, Kotlin, Objective-C, Swift)

It is also available to use in native projects (Android and iOS).

Contributing

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

License

MIT

/@coingrig/wallet-generator/

    Package Sidebar

    Install

    npm i @coingrig/wallet-generator

    Weekly Downloads

    4

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    25.4 MB

    Total Files

    43

    Last publish

    Collaborators

    • radu.vulpescu
    • florindumitru