moca_chains 1.0.2 moca_chains: ^1.0.2 copied to clipboard
Chains package for Moca App. This library gives the developer common methods for interacting with chains.
Chains package for Moca App. This library gives the developer common methods for interacting with chains.
Features #
Chains #
- Ethereum
- Bitcoin
- Solana
Methods
- initMnemonic
- createMnemonic
- getBalance
- makeTransaction
Usage #
These methods apply for the different chains
import 'package:moca_chains/moca_chains.dart';
final chain = ChainFactory('ethereum').build();
final privateHex = await chain.initMnemonic('YOUR_MNEMONIC');
final balance = await chain.getBalance(chain.getPublicKeyStringFromHex(privateHex));
print(balance);