@coingrig/wallet-generator
Blazing
Todo:
- Bitcoin (segwit)
- 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).
- For Android use the
CGWallet.aar
and.jar
files fromandroid/libs
- For iOS use the
CGWallet.xcframework
fromios/
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT