cs_monero 1.0.0-pre.1 copy "cs_monero: ^1.0.0-pre.1" to clipboard
cs_monero: ^1.0.0-pre.1 copied to clipboard

A monero (and wownero) library

About #

Quickstart #

  1. Add to pubspec.yaml
    dependencies:
      cs_monero: 0.0.1
      cs_monero_flutter_libs: 0.0.1 # Contains native libs required by cs_monero.
    
  2. Create a wallet
    final wallet = await MoneroWallet.create(
      path: "somePath", // Path to wallet files will be saved,
      password: "SomeSecurePassword", // Your wallet files are only as secure as this password.  This cannot be recovered if lost!
      language: "English", // Seed language.
      seedType: MoneroSeedType.sixteen, // 16 word polyseed or MoneroSeedType.twentyFive for legacy seed format.
      networkType: 0, // Mainnet.
    );
    
     // Init a connection
     await wallet.connect(
       daemonAddress: "daemonAddress",
       trusted: true,
     );
        
     // get main wallet address for account 0
     final address = wallet.getAddress();
        
     // create a tx
     final pendingTx = await wallet.createTx(
       output: Recipient(
         address: "address",
         amount: BigInt.from(100000000),
       ),
       priority: TransactionPriority.normal,
       accountIndex: 0,
     );
        
     // broadcast/commit tx to network
     await wallet.commitTx(pendingTx);
    

Known Limitations #

  • No iOS simulator support
  • No Android i686 support
0
likes
130
points
194
downloads

Publisher

verified publishercypherstack.com

Weekly Downloads

A monero (and wownero) library

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ffi, logger, meta

More

Packages that depend on cs_monero