mops_wallet_core 0.0.2 mops_wallet_core: ^0.0.2 copied to clipboard
Create Wallet for BTC,LTC,Dogecoin,ETC,ETH,BSC,POLYGON And more will coming....
Example Usage for Creating Wallet
createWallet(String name) async {
final walletManager = WalletManager();
final walletCreate = WalletCreate();
String mne = walletManager.generateMnemonic();
bool success = walletManager.validateMnemonic(mne);
if (!success) {
debugPrint('Your Mnemonic is not valid');
}
Wallets wallet = await walletCreate.createWallet(name, mne);
return wallet;
}
Example Usage for Importing Wallet
createWallet(String name,String mne) async {
final walletManager = WalletManager();
final walletCreate = WalletCreate();
bool success = walletManager.validateMnemonic(mne);
if (!success) {
debugPrint('Your Mnemonic is not valid');
}
Wallets wallet = await walletCreate.createWallet(name, mne);
return wallet;
}