ton 0.0.2 copy "ton: ^0.0.2" to clipboard
ton: ^0.0.2 copied to clipboard

Ton Sdk for Flutter

ton #

Ton Sdk for Flutter. This project uses org.ton:ton-kotlin:0.2.15 for native android calls and does not support web, linux and windows yet.

Getting Started #

First of all initiate a Ton variable

final _tonPlugin = Ton();

Generating a random mnemonic:

_tonPlugin.randomMnemonic();

This function will return a Future of List of Strings which are the seed to your wallet.

Generating a random mnemonic with password: For doing this you have to pass the password as a String parameter.

_tonPlugin.randomMnemonic(password: "YOU_WALLET_PASSWORD");

This function will also return a Future of List of Strings which are the seed to your ton wallet.