Ton.HttpClient
0.1.1
See the version list below for details.
dotnet add package Ton.HttpClient --version 0.1.1
NuGet\Install-Package Ton.HttpClient -Version 0.1.1
<PackageReference Include="Ton.HttpClient" Version="0.1.1" />
<PackageVersion Include="Ton.HttpClient" Version="0.1.1" />
<PackageReference Include="Ton.HttpClient" />
paket add Ton.HttpClient --version 0.1.1
#r "nuget: Ton.HttpClient, 0.1.1"
#:package Ton.HttpClient@0.1.1
#addin nuget:?package=Ton.HttpClient&version=0.1.1
#tool nuget:?package=Ton.HttpClient&version=0.1.1
Ton.NET
Modern .NET SDK for TON blockchain with 1:1 API compatibility with official JavaScript SDKs.
Packages
| Package | Description | Version |
|---|---|---|
| Ton.Core | Core types, addresses, cells, BOC | |
| Ton.Crypto | Cryptography, mnemonics, Ed25519 | |
| Ton.HttpClient | HTTP API, wallets, jettons |
Installation
dotnet add package Ton.Core
dotnet add package Ton.Crypto
dotnet add package Ton.HttpClient
Quick Start
using Ton.Core.Addresses;
// Parse and work with TON addresses
var address = Address.Parse("EQAs9VlT6S776tq3unJcP5Ogsj-ELLunLXuOb1EKcOQi4wJB");
Console.WriteLine($"Workchain: {address.WorkChain}");
Console.WriteLine($"Raw: {address.ToRawString()}");
// Convert between formats
var raw = "0:2cf55953e92efbeadab7ba725c3f93a0b23f842cbba72d7b8e6f510a70e422e3";
var friendly = Address.Parse(raw).ToString();
Console.WriteLine($"Friendly: {friendly}");
// Validate addresses
bool isFriendly = Address.IsFriendly("EQAs9VlT...");
bool isRaw = Address.IsRaw("0:2cf55953...");
Features
✅ Ton.Core (v0.0.1)
- ✅ Address type (immutable, full compatibility with JS)
- ✅ CRC-16 checksum
- ⏳ BitString, BitReader, BitBuilder
- ⏳ Cell, Builder, Slice
- ⏳ Dictionary
- ⏳ Tuple types
- ⏳ TL-B schemas (Message, Transaction, Account, etc.)
⏳ Ton.Crypto (v0.0.1 - Coming Soon)
- ⏳ Mnemonic (BIP39)
- ⏳ Ed25519 signing
- ⏳ SHA-256/512, HMAC, PBKDF2
- ⏳ HD wallets
⏳ Ton.HttpClient (v0.1.0 - Coming Soon)
- ⏳ HTTP API clients (Toncenter v2/v4)
- ⏳ Wallet contracts (V1-V5)
- ⏳ Jetton support
- ⏳ Multisig
- ⏳ Fee computation
API Compatibility
This SDK maintains 1:1 API compatibility with official TON JavaScript SDKs:
- @ton/core → Ton.Core
- @ton/crypto → Ton.Crypto
- @ton/ton → Ton.HttpClient
API naming follows C# conventions (PascalCase) while preserving the same method signatures and behavior.
Development Status
🚧 Early Development - Currently implementing Phase 1 (Core types). API may change before 1.0.0 release.
See API_INVENTORY.md for detailed implementation roadmap.
Requirements
- .NET 9.0 or later
License
MIT License - see LICENSE file for details.
Contributing
Contributions welcome! This is a ground-up rewrite focused on:
- Clean, modern C# code
- Full test coverage
- Complete API compatibility with JS SDKs
- Comprehensive documentation
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- Ton.Core (>= 0.1.1)
- Ton.Crypto (>= 0.1.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.2.7 | 677 | 12/2/2025 |
| 0.2.6 | 243 | 11/16/2025 |
| 0.2.5 | 195 | 11/6/2025 |
| 0.2.4 | 215 | 10/30/2025 |
| 0.2.3 | 206 | 10/30/2025 |
| 0.2.2 | 216 | 10/29/2025 |
| 0.2.1 | 198 | 10/29/2025 |
| 0.2.0 | 201 | 10/29/2025 |
| 0.1.5 | 201 | 10/28/2025 |
| 0.1.4 | 198 | 10/28/2025 |
| 0.1.3 | 186 | 10/27/2025 |
| 0.1.2 | 200 | 10/27/2025 |
| 0.1.1 | 192 | 10/27/2025 |