moca_chains 1.0.0 copy "moca_chains: ^1.0.0" to clipboard
moca_chains: ^1.0.0 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.getPublicKeyStringFromHex(privateHex));
  print(balance);
}
2
likes
0
pub points
76%
popularity

Publisher

unverified uploader

Chains package for Moca App. This library gives the developer common methods for interacting with chains.

License

unknown (license)

Dependencies

bech32, bitcoin_base, blockchain_utils, convert, http, on_chain, web_socket_channel

More

Packages that depend on moca_chains