Skip to main content
There are several ways to interact with TON blockchain:
  • HTTP libraries connect through HTTP JSON APIs to read and write to the blockchain. HTTP servers mostly relay these requests to the ADNL network.
  • ADNL libraries connect to liteserver.
Here’s a small comparison of these protocols:
HTTPADNL
StandardizedNoYes
Can connect from a web pageYesNo
Has free third-party serversYesYes
Can be self-hostedYesYes
Requires trusting third partiesYes1No
First connection takes time for data synchronizationNoYes2
1 Some HTTP servers do provide proofs, but there is no out‑of‑the‑box library that verifies them.
2 If proofs returned by liteservers are ignored, the first connection skips data synchronization; however, this requires trusting the liteserver.
SDKs might also provide some other functionality:
  • Core libraries implement standard TON data structures (cell, slice), formats (address, mnemonic), cryptography, etc.
  • Wrappers provide high-level APIs for interacting with standard contracts (Wallet, Jetton, NFT).
  • Emulator libraries provide an execution environment similar to a real blockchain for testing purposes.
HTTPADNLCoreWrappersEmulatorLanguage
⭐@ton/tonβœ…βœ…TypeScriptCodeChat
⭐@ton/coreβœ…TypeScriptCodeDocs
⭐@ton/sandboxβœ…TypeScriptCode
⭐ton4jβœ…βœ…βœ…JavaCodeChat
⭐tonutils-goβœ…βœ…βœ…GoCodeChat
adnlβœ…TypeScriptCode
tonutilsβœ…TypeScriptCode
tonlib-javaβœ…JavaCode
tonutilsβœ…βœ…βœ…PythonCodeDocsChat
tonlibβœ…C++CodeDocs
ton-kotlinβœ…βœ…KotlinCodeDocs
pytonlibβœ…PythonCode
pytoniqβœ…PythonCodeDocsChat
pytoniq-coreβœ…PythonCodeDocsChat
mytonlibβœ…βœ…PythonCode
tonpyβœ…PythonCodeDocs
tvm_valuetypesβœ…PythonCode
pytvmβœ…PythonCode
tongoβœ…βœ…βœ…βœ…GoCode
tonβœ…PHPCode
interopβœ…PHPCode
ton-rsβœ…βœ…βœ…βœ…RustCode
ton-grpcβœ…RustCode
tonsdk.netβœ…βœ…C#CodeChat
tonlib.netβœ…βœ…βœ…C#Code
tonβœ…ElixirCode
@tetherto/wdk-wallet-tonβœ…βœ…JavaScriptCodeDocs
@tetherto/wdk-wallet-ton-gaslessβœ…βœ…JavaScriptCodeDocs
tonlib-goβœ…GoCode
tonwebβœ…JavaScriptCode
node-tonlibβœ…JavaScriptCode
tontoolsβœ…βœ…PythonCode
swiftytonβœ…SwiftCode
tonlib-xcframeworkβœ…SwiftCode
tonlib-rsβœ…βœ…βœ…βœ…RustCode
See also:
  • WDK Core, JavaScript - Modular library from Tether, which supports wallet management and various swap, bridge, and lending services for many blockchains at once.