ton 0.0.4 copy "ton: ^0.0.4" to clipboard
ton: ^0.0.4 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 https://github.com/toncenter/tonweb-mnemonic for web support and does not support linux and windows yet.

Buy me a coffee #

If you love this library and want to support its development you can donate any amount of coins to this TON address ☺️:

EQDKcML9_qEz_YsiUtxxIzaEBwCfAiCfKnM1oHIw5qIVO_MX

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.

Check if a mnemonic is valid: #

mnemonic = <String>['a', 'b', ...];
_tonPlugin.isMnemonicValid(mnemonic)

You can also pass your mnemonic's password if it has one.

Web Configuration #

Add the files in example project under web directory to your project and then add the script below to your index.html file

  <script src="ton-mnemonic/web/index.js"></script>

The files can be found here: Web Mnemonic Library

How to Contribute #

Registration: Connect your wallet and fill your GitHub and Telegram accounts in ton society

Fork & Clone: Fork this repository and clone it to your local machine.

Pick an Issue: Browse open issues, choose one that interests you, and commit to it.

Code Away: Address the issue in your local environment.

Pull Request: Submit a PR for review. Please ensure your PR title is clear and your description is detailed.

Contact the team: notify the team of your PR to check the code

Links #