moca_chains 1.2.5 moca_chains: ^1.2.5 copied to clipboard
Chains package for Moca App. This library gives the developer common methods for interacting with chains.
example/moca_chains_example.dart
import 'package:moca_chains/moca_chains.dart';
void main() async {
final chain = ChainFactory('solana').build();
final privateHex = await chain.initMnemonic('YOUR_MNEMONIC');
final balance =
await chain.getBalance(chain.getKeysFromPrivateHex(privateHex).address);
print(balance);
}