flutter_libra_core 0.1.3 flutter_libra_core: ^0.1.3 copied to clipboard
Libra Core is a Dart library client that can be used to interact with Libra nodes.
import 'package:flutter_libra_core/flutter_libra_core.dart';
void main() async {
// Creating an Account
LibraWallet wallet = new LibraWallet();
LibraAccount alice = wallet.newAccount();
String aliceAddress = alice.getAddress();
// Minting Amount
LibraClient client = new LibraClient();
int amount = 1000000;
await client.mintWithFaucetService(aliceAddress, BigInt.from(amount), needWait: false);
}