{"id":39130206,"url":"https://github.com/nerzh/ton-sdk-swift","last_synced_at":"2026-01-17T21:16:11.694Z","repository":{"id":220616787,"uuid":"752113901","full_name":"nerzh/ton-sdk-swift","owner":"nerzh","description":"Swift SDK for TON blockchain. Library for interacting with TON blockchain. Client for dapp provider.","archived":false,"fork":false,"pushed_at":"2025-10-16T21:41:53.000Z","size":121,"stargazers_count":8,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-18T00:48:22.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nerzh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-03T04:12:39.000Z","updated_at":"2025-10-16T21:41:27.000Z","dependencies_parsed_at":"2024-02-29T03:28:54.706Z","dependency_job_id":"bb82e59e-f782-4718-bec1-e2c51889bd31","html_url":"https://github.com/nerzh/ton-sdk-swift","commit_stats":null,"previous_names":["nerzh/ton-sdk-swift"],"tags_count":25,"template":false,"template_full_name":null,"purl":"pkg:github/nerzh/ton-sdk-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fton-sdk-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fton-sdk-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fton-sdk-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fton-sdk-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerzh","download_url":"https://codeload.github.com/nerzh/ton-sdk-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerzh%2Fton-sdk-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28518617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T18:55:29.170Z","status":"ssl_error","status_checked_at":"2026-01-17T18:55:03.375Z","response_time":85,"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":[],"created_at":"2026-01-17T21:16:10.111Z","updated_at":"2026-01-17T21:16:11.687Z","avatar_url":"https://github.com/nerzh.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TON-SDK-SWIFT\n\nSwift SDK for interaction with TON (The Open Network) blockchain\n\n| OS | Result |\n| ----------- | ----------- |\n| MacOS | ✅ |\n| Linux | ✅ |\n| iOS | ✅ |\n| Windows | ✅ |\n\n## Installation\n\nInstall ton-sdk-swift:\n\n- `.package(url: \"https://github.com/nerzh/ton-sdk-swift\", .upToNextMajor(from: \"1.0.0\")),`\n\n# ⚠️ TON-SDK-SWIFT-SMC\n###### ⚠️ You might also find it beneficial to make use of the [TON-SDK-SWIFT-SMC](https://github.com/nerzh/ton-sdk-swift-smc) package, which implements basic wrappers for TON smart contracts (please be aware that ton-sdk-swift-smc is distributed under the LGPL-3.0 license).\n\n# Example\n\n```swift\nimport XCTest\nimport TonSdkSwift\n\nfinal class ExampleTests: XCTestCase {\n    \n    func testExample() async throws {\n        /// Init address from string\n        let addr = try Address(address: \"EQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqB2N\")\n        /// Init and fill the builder\n        let b = CellBuilder()\n        try b.storeUInt(200, 30)\n        try b.storeAddress(addr)\n        try b.storeCoins(Coins(0.0001))\n        \n        /// End builder and serialize to boc\n        let bytes = try Boc.serialize(root: [b.cell()])\n        let base64 = bytes.toBase64()\n        \n        print(\"boc in base64 format:\", base64)\n        \n        /// Deserialize base64 boc\n        let cell = try Boc.deserialize(data: base64.base64ToBytes()).first\n        \n        /// Parse cell into slice\n        let cs = cell?.parse()\n        \n        /// Load and print values\n        XCTAssertEqual(try cs?.loadBigUInt(size: 30), 200)\n        XCTAssertEqual(try cs?.loadAddress()?.toString(), \"UQCD39VS5jcptHL8vMjEXrzGaRcCVYto7HUn4bpAOg8xqEBI\")\n        XCTAssertEqual(try cs?.loadCoins(), Coins(0.0001))\n    }\n}\n```\n\n## License\n\nMIT\n\n## Mentions\n\nI would like to thank [cryshado](https://github.com/cryshado) for their valuable advice and help in developing this library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerzh%2Fton-sdk-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerzh%2Fton-sdk-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerzh%2Fton-sdk-swift/lists"}