Ton.Core 0.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package Ton.Core --version 0.0.4
                    
NuGet\Install-Package Ton.Core -Version 0.0.4
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Ton.Core" Version="0.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Ton.Core" Version="0.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Ton.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Ton.Core --version 0.0.4
                    
#r "nuget: Ton.Core, 0.0.4"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Ton.Core@0.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Ton.Core&version=0.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Ton.Core&version=0.0.4
                    
Install as a Cake Tool

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 NuGet
Ton.Crypto Cryptography, mnemonics, Ed25519 NuGet
Ton.Client HTTP clients, wallets, jettons NuGet

Installation

dotnet add package Ton.Core
dotnet add package Ton.Crypto
dotnet add package Ton.Client

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.Client (v0.0.1 - Coming Soon)

  • ⏳ HTTP API clients
  • ⏳ Wallet contracts (V1-V5)
  • ⏳ Jetton support
  • ⏳ Multisig
  • ⏳ Fee computation

API Compatibility

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.

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
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on Ton.Core:

Package Downloads
Ton.HttpClient

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.

Ton.Contracts

TON smart contract implementations for .NET - Wallet contracts (V1-V5), Jettons, and NFTs. 1:1 API compatibility with @ton/ton JavaScript library.

Ton.LiteClient

TON Blockchain Lite Client for .NET - High-level API for interacting with TON blockchain via ADNL protocol

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.7 1,185 12/2/2025
0.2.6 333 11/16/2025
0.2.5 254 11/6/2025
0.2.4 269 10/30/2025
0.2.3 249 10/30/2025
0.2.2 245 10/29/2025
0.2.1 241 10/29/2025
0.2.0 227 10/29/2025
0.1.5 235 10/28/2025
0.1.4 221 10/28/2025
0.1.3 219 10/27/2025
0.1.2 221 10/27/2025
0.1.1 204 10/27/2025
0.1.0 180 10/26/2025
0.0.13 177 10/26/2025
0.0.12 168 10/26/2025
0.0.11 191 10/26/2025
0.0.10 171 10/26/2025
0.0.9 185 10/26/2025
0.0.8 179 10/26/2025
0.0.7 184 10/26/2025
0.0.6 187 10/26/2025
0.0.5 182 10/26/2025
0.0.4 184 10/26/2025
0.0.3 187 10/26/2025