{"id":15719901,"url":"https://github.com/andrewbarba/lisk-swift","last_synced_at":"2025-05-13T02:47:37.646Z","repository":{"id":56919852,"uuid":"113886093","full_name":"AndrewBarba/lisk-swift","owner":"AndrewBarba","description":"Swift 4 library for Lisk - Including Local Signing for maximum security ","archived":false,"fork":false,"pushed_at":"2018-05-15T16:52:02.000Z","size":1733,"stargazers_count":10,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-29T13:05:06.617Z","etag":null,"topics":["bitcoin","cryptocurrency","ios","lisk","lsk","macos","swift","tvos","watchos"],"latest_commit_sha":null,"homepage":"https://lisk.io","language":"Swift","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/AndrewBarba.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-11T17:06:13.000Z","updated_at":"2025-01-26T11:19:52.000Z","dependencies_parsed_at":"2022-08-21T04:20:20.539Z","dependency_job_id":null,"html_url":"https://github.com/AndrewBarba/lisk-swift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewBarba%2Flisk-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewBarba%2Flisk-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewBarba%2Flisk-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewBarba%2Flisk-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewBarba","download_url":"https://codeload.github.com/AndrewBarba/lisk-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253862734,"owners_count":21975583,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["bitcoin","cryptocurrency","ios","lisk","lsk","macos","swift","tvos","watchos"],"created_at":"2024-10-03T21:57:11.411Z","updated_at":"2025-05-13T02:47:37.626Z","avatar_url":"https://github.com/AndrewBarba.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lisk Swift\n==========\n\n[![Build Status](https://www.bitrise.io/app/b15eedbea467ee22/status.svg?token=RkzlwvQLLXXn5w1J1z2tpQ\u0026branch=master)](https://www.bitrise.io/app/b15eedbea467ee22)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Lisk.svg)](https://img.shields.io/cocoapods/v/Lisk.svg)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Twitter](https://img.shields.io/badge/twitter-@andrew_barba-blue.svg?style=flat)](http://twitter.com/andrew_barba)\n\nLisk Swift is a Swift 4 library for Lisk - the cryptocurrency and blockchain application platform. It allows developers to create offline transactions and broadcast them onto the network. It also allows developers to interact with the core Lisk API, for retrieval of collections and single records of data located on the Lisk blockchain. Its main benefit is that it does not require a locally installed Lisk node, and instead utilizes the existing peers on the network. It can be used on any environment that runs Swift 4, including iOS, tvOS, macOS, watchOS.\n\nLisk Swift is heavily inspired by [Lisk JS](https://github.com/LiskHQ/lisk-js)\n\n## Features\n\n- [x] Local Signing for maximum security\n- [x] Targets Lisk 1.0.0 API\n- [x] Directly based on lisk-js\n- [x] Swift 4.0\n- [x] Unit Tests (87% coverage)\n- [x] Documentation\n\n## API\n\n- [Accounts](https://andrewbarba.github.io/lisk-swift/Structs/Accounts.html)\n- [Blocks](https://andrewbarba.github.io/lisk-swift/Structs/Blocks.html)\n- [Delegates](https://andrewbarba.github.io/lisk-swift/Structs/Delegates.html)\n- [Loader](https://andrewbarba.github.io/lisk-swift/Structs/Loader.html)\n- [Peers](https://andrewbarba.github.io/lisk-swift/Structs/Peers.html)\n- [Signatures](https://andrewbarba.github.io/lisk-swift/Structs/Signatures.html)\n- [Transactions](https://andrewbarba.github.io/lisk-swift/Structs/Transactions.html)\n\n## Documentation\n\n[https://andrewbarba.github.io/lisk-swift/](https://andrewbarba.github.io/lisk-swift/)\n\n## Usage\n\n### Import Framework\n\n```swift\nimport Lisk\n```\n\n### Send LSK\n\n```swift\nlet address = ...\nlet secret = ...\n\n// Send LSK on the Mainnet\nTransactions().transfer(lsk: 1.12, to: address, secret: secret) { response in\n    switch response {\n    case .success(let result):\n        print(result.transactionId)\n    case .error(let error):\n        print(error.message)\n    }\n}\n```\n\n#### Send LSK on Testnet\n\n```swift\nlet address = ...\nlet secret = ...\n\n// Send LSK on the Testnet\nTransactions(client: .testnet).transfer(lsk: 1.12, to: address, secret: secret) { response in\n    switch response {\n    case .success(let result):\n        print(result.transactionId)\n    case .error(let error):\n        print(error.message)\n    }\n}\n```\n\n### Testnet\n\nBy default, all modules are initialized with an `APIClient` pointing to the Lisk Mainnet. You can optionally pass in a specific client to any modules constructor:\n\n```swift\nlet mainTransactions = Transactions()\nlet testTransactions = Transactions(client: .testnet)\n```\n\nTo default all modules to a specific client you can set the shared client:\n\n```swift\nAPIClient.shared = .testnet\n```\n\nAnd then all modules initialized will default to Testnet:\n\n```swift\n// This will connect to Testnet\nlet transactions = Transactions()\n```\n\n## Requirements\n\n- iOS 10.0+ / macOS 10.12+ / tvOS 10.0+ / watchOS 3.0+\n- Xcode 9.0+\n- Swift 4.0+\n\n## Installation\n\n### Swift Package Manager\n\n```swift\n// swift-tools-version:4.0\n\nimport PackageDescription\n\nlet package = Package(\n    name: \"My Lisk App\",\n    dependencies: [\n        .package(url: \"https://github.com/AndrewBarba/lisk-swift.git\", from: \"1.0.0-beta\")\n    ]\n)\n```\n\n### CocoaPods\n\n\u003e CocoaPods 1.1.0+ is required to build lisk-swift\n\n```ruby\npod 'Lisk', '~\u003e 1.0.0-beta'\n```\n\n### Carthage\n\n```ogdl\ngithub \"AndrewBarba/lisk-swift\" ~\u003e 1.0.0-beta\n```\n\n## Thank You\n\nTo show support for continued development feel free to vote for my delegate: [andrew](https://explorer.lisk.io/delegate/14987768355736502769L)\n\nOr donate LSK to `14987768355736502769L`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewbarba%2Flisk-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewbarba%2Flisk-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewbarba%2Flisk-swift/lists"}