Skip to content

radianceteam/ton-client-kotlin

Repository files navigation

TON-SDK Client Kotlin Examples

This project describes how to setup a gradle project (see: build.gradle.kts) and how to use the underlying dependency https://github.com/radianceteam/ton-client-java/.

Just dive into the examples package and have a look.

With the main.kt, you can run all the example in a row. If you want, you can comment out the examples in this file and focus on a specific implementation.

How to run the examples

Install gradle with your favorite dependency management tool.

For example:

Then run

./start-container.sh     # only once
gradle run

in this projects root folder.

One more thing

The ton-client-java produces CompletableFutures as results. There is a convenience extension function to use it in a coroutine, if you are wondering where the .await() function comes from.

(see: com.radiance.tonclient/package.kt - copied from https://github.com/Kotlin/coroutines-examples/blob/master/examples/future/await.kt by Roman Elizarov)

About

TON SDK Client library usage examples for Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published