Kukai Core Swift is a native Swift library for interacting with the Tezos blockchain and other applications in the Tezos ecosystem, such as the indexer TzKT and the smart contract explorer Better Call Dev. It leverages WalletCore the open source library built by TrustWallet, for key and wallet creation.
Feature set includes:
Kukai Core Swift supports the Swift Package Manager. Either use the Xcode editor to add to your project by clicking File
-> Swift Packages
-> Add Package Dependency
, search for the git repo https://github.com/kukai-wallet/kukai-core-swift.git
and choose from version 0.1.0
.
Or add it to your Package.swift
dependencies like so:
dependencies: [
.package(url: "https://github.com/kukai-wallet/kukai-core-swift", from: "0.1.0")
]
Wallets are created using dedicated classes for each type, conforming to the Wallet
protocol.
The main functionality centres around client classes and a factory:
You can see some of this functionality inside the repo's example iOS-Example project. The app is a simple tableview, with the first section responsible for creating and caching wallets. The rest of the sections will load the cached wallet and use its details to fetch/display balances or estiamte/send operations.
Compiled Swift Doc's can be found here
link |
Stars: 9 |
Last commit: Yesterday |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics