- 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.
| HTTP | ADNL | |
|---|---|---|
| Standardized | No | Yes |
| Can connect from a web page | Yes | No |
| Has free third-party servers | Yes | Yes |
| Can be self-hosted | Yes | Yes |
| Requires trusting third parties | Yes1 | No |
| First connection takes time for data synchronization | No | Yes2 |
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.
| HTTP | ADNL | Core | Wrappers | Emulator | Language | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| ⭐ | @ton/ton | ✅ | ✅ | TypeScript | Code | Chat | ||||
| ⭐ | @ton/core | ✅ | TypeScript | Code | Docs | |||||
| ⭐ | @ton/sandbox | ✅ | TypeScript | Code | ||||||
| ⭐ | ton4j | ✅ | ✅ | ✅ | Java | Code | Chat | |||
| ⭐ | tonutils-go | ✅ | ✅ | ✅ | Go | Code | Chat | |||
adnl | ✅ | TypeScript | Code | |||||||
tonutils | ✅ | TypeScript | Code | |||||||
tonlib-java | ✅ | Java | Code | |||||||
tonutils | ✅ | ✅ | ✅ | Python | Code | Docs | Chat | |||
tonlib | ✅ | C++ | Code | Docs | ||||||
ton-kotlin | ✅ | ✅ | Kotlin | Code | Docs | |||||
pytonlib | ✅ | Python | Code | |||||||
pytoniq | ✅ | Python | Code | Docs | Chat | |||||
pytoniq-core | ✅ | Python | Code | Docs | Chat | |||||
mytonlib | ✅ | ✅ | Python | Code | ||||||
tonpy | ✅ | Python | Code | Docs | ||||||
tvm_valuetypes | ✅ | Python | Code | |||||||
pytvm | ✅ | Python | Code | |||||||
tongo | ✅ | ✅ | ✅ | ✅ | Go | Code | ||||
ton | ✅ | PHP | Code | |||||||
interop | ✅ | PHP | Code | |||||||
ton-rs | ✅ | ✅ | ✅ | ✅ | Rust | Code | ||||
ton-grpc | ✅ | Rust | Code | |||||||
tonsdk.net | ✅ | ✅ | C# | Code | Chat | |||||
tonlib.net | ✅ | ✅ | ✅ | C# | Code | |||||
ton | ✅ | Elixir | Code | |||||||
@tetherto/wdk-wallet-ton | ✅ | ✅ | JavaScript | Code | Docs | |||||
@tetherto/wdk-wallet-ton-gasless | ✅ | ✅ | JavaScript | Code | Docs | |||||
tonlib-go | ✅ | Go | Code | |||||||
tonweb | ✅ | JavaScript | Code | |||||||
node-tonlib | ✅ | JavaScript | Code | |||||||
tontools | ✅ | ✅ | Python | Code | ||||||
swiftyton | ✅ | Swift | Code | |||||||
tonlib-xcframework | ✅ | Swift | Code | |||||||
tonlib-rs | ✅ | ✅ | ✅ | ✅ | Rust | Code |
- WDK Core, JavaScript - Modular library from Tether, which supports wallet management and various swap, bridge, and lending services for many blockchains at once.