TON blockchain HTTP client library for .NET - Toncenter API v2/v4, wallet contracts (V1-V5), jettons, multisig. 1:1 API compatibility with @ton/ton JavaScript library.
$ dotnet add package Ton.HttpClientModern .NET SDK for TON blockchain with 1:1 API compatibility with official JavaScript SDKs.
| Package | Description | Version |
|---|---|---|
| Ton.Core | Core types, addresses, cells, BOC | |
| Ton.Crypto | Cryptography, mnemonics, Ed25519 | |
| Ton.HttpClient | HTTP API, wallets, jettons |
dotnet add package Ton.Core
dotnet add package Ton.Crypto
dotnet add package Ton.HttpClient
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...");
This SDK maintains 1:1 API compatibility with official TON JavaScript SDKs:
API naming follows C# conventions (PascalCase) while preserving the same method signatures and behavior.
🚧 Early Development - Currently implementing Phase 1 (Core types). API may change before 1.0.0 release.
See API_INVENTORY.md for detailed implementation roadmap.
MIT License - see LICENSE file for details.
Contributions welcome! This is a ground-up rewrite focused on: