moca_chains 1.1.0 copy "moca_chains: ^1.1.0" to clipboard
moca_chains: ^1.1.0 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
  • Binance Smart Chain
  • Litecoin

Methods

  • initMnemonic
  • createMnemonic
  • getBalance
  • makeTransaction

Swaps #

Support for swaps with mayachain (BTC - ETH)

Usage #

These methods apply for the different chains

import 'package:moca_chains/moca_chains.dart';

  final chain = ChainFactory('solana').build();
  final privateHex = await chain.initMnemonic('YOUR_MNEMONIC');
  final balance =
      await chain.getBalance(chain.getKeysFromPrivateHex(privateHex).address);
  print(balance);
1
likes
0
pub points
65%
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, cosmos_sdk, dio, flutter_bitcoin, http, on_chain, web_socket_channel

More

Packages that depend on moca_chains