{"id":43668484,"url":"https://github.com/radianceteam/everscale-client-dotnet","last_synced_at":"2026-02-04T23:14:46.058Z","repository":{"id":45772888,"uuid":"306216416","full_name":"radianceteam/everscale-client-dotnet","owner":"radianceteam","description":"Everscale SDK Client library binding for .NET","archived":false,"fork":false,"pushed_at":"2022-11-12T11:45:38.000Z","size":1143121,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-19T00:02:22.979Z","etag":null,"topics":["blockchain","dotnet","everscale","everscale-sdk","freeton","freeton-sdk","ton","ton-client"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/radianceteam.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-10-22T03:53:05.000Z","updated_at":"2023-05-25T20:19:09.000Z","dependencies_parsed_at":"2023-01-22T20:00:12.902Z","dependency_job_id":null,"html_url":"https://github.com/radianceteam/everscale-client-dotnet","commit_stats":null,"previous_names":["radianceteam/ton-client-dotnet"],"tags_count":62,"template":false,"template_full_name":null,"purl":"pkg:github/radianceteam/everscale-client-dotnet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radianceteam%2Feverscale-client-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radianceteam%2Feverscale-client-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radianceteam%2Feverscale-client-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radianceteam%2Feverscale-client-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/radianceteam","download_url":"https://codeload.github.com/radianceteam/everscale-client-dotnet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/radianceteam%2Feverscale-client-dotnet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29099124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T22:44:52.815Z","status":"ssl_error","status_checked_at":"2026-02-04T22:44:16.428Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","dotnet","everscale","everscale-sdk","freeton","freeton-sdk","ton","ton-client"],"created_at":"2026-02-04T23:14:45.125Z","updated_at":"2026-02-04T23:14:46.048Z","avatar_url":"https://github.com/radianceteam.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# TON SDK .NET Wrapper\n\n**Community links:**\n\n[![Chat on Telegram](https://img.shields.io/badge/chat-on%20telegram-9cf.svg)](https://t.me/RADIANCE_TON_SDK)\n\n## Supported Platforms\n\n - Windows x86, x64\n - Linux x64\n - macOS x64\n \n### Supported runtimes\n\n - .NET Core 2.0 and newer.\n - .NET Framework 4.6.1 and newer.\n\n## Installation\n\n### NuGet package\n\n```\nInstall-Package TonClient\n```\n\n## Usage examples\n\n### Basic usage\n\n```cs\nusing TonSdk.Modules;\n\nusing var client = TonClient.Create();\nvar version = await client.Client.VersionAsync();\nConsole.WriteLine($\"TON SDK client version: {version.Version}\");\n```\n\n### Advanced usage\n\n#### Configuring client\n\n```cs\nusing var client = TonClient.Create(new ClientConfig\n{\n    Network = new NetworkConfig\n    {\n        ServerAddress = \"http://localhost\",\n        MessageRetriesCount = 10,\n        OutOfSyncThreshold = 2500\n    },\n    Abi = new AbiConfig\n    {\n        MessageExpirationTimeout = 10000\n    }\n});\n```\n\n#### Logging\n\nBy default, wrapper uses `DummyLogger` which is an implementation of `ILogger` interface.\n\nTo configure custom logging, create own `ILogger` implementation and pass it to `TonClient.Create()`:\n\n```cs \nusing System;\nusing Serilog;\nusing ILogger = TonSdk.ILogger;\n\n...\n\npublic class MyLogger : ILogger\n{\n    public void Debug(string message)\n    {\n        Log.Debug(message);\n    }\n\n    public void Information(string message)\n    {\n        Log.Information(message);\n    }\n\n    public void Warning(string message)\n    {\n        Log.Warning(message);\n    }\n\n    public void Error(string message, Exception ex = null)\n    {\n        Log.Error(ex, message);\n    }\n}\n``` \n\nthen call `TonClient.Create` method with logger argument:\n\n```cs \nusing System;\nusing Serilog;\nusing TonSdk.Modules;\n   \nLog.Logger = new LoggerConfiguration()\n    .MinimumLevel.Debug()\n    .WriteTo.Console()\n    // ... other logging setup\n    .CreateLogger();\n\nusing var client = TonClient.Create(new MyLogger());\n```\n\nor with both config and logger:\n   \n```cs \nusing var client = TonClient.Create(new ClientConfig { \n    // ... \n}, new MyLogger()));\n```\n\nNote: see [TonClientDemo](src/TonClientDemo) for the complete working demo.\n\n#### Passing JToken values\n\nSome API methods require `JToken` parameters. [JToken](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_Linq_JToken.htm) \nis a class from [Newtonsoft.Json](https://www.nuget.org/packages/Newtonsoft.Json/) library used for JSON processing. \nTON SDK .NET Wrapper library uses it for passing raw JSON data to the client library and back. \nHere's the example of how to deal with it:\n\n```cs \n\nusing TonSdk.Modules;\n\nusing var client = TonClient.Create();\nvar result = await client.Net.WaitForCollectionAsync(new ParamsOfWaitForCollection\n{\n    Collection = \"accounts\",\n    Filter = new\n    {\n        id = new { eq = \"... some address\" }\n    }.ToJson(),\n    Result = \"id boc\"\n});\n```\n\nNote `ToJson` extension method used for constructing [JToken](https://www.newtonsoft.com/json/help/html/T_Newtonsoft_Json_Linq_JToken.htm) from .NET object of anonymous type.\n\n## More Examples\n\nSee [Examples](examples) directory.\n\n## Development\n\nSee [Development documentation](development.md).\n\n## License\n\nApache License, Version 2.0.\n\n## Troubleshooting\n\nFire any question to our [Telegram channel](https://t.me/RADIANCE_TON_SDK).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradianceteam%2Feverscale-client-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fradianceteam%2Feverscale-client-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fradianceteam%2Feverscale-client-dotnet/lists"}