- Send transactions, call functions of smart-contracts, estimate gas costs
- Serialize and deserialize transactions and results to native Swift types
- Convenience functions for chain state: block number, gas price
- Check transaction results and get receipt
- Parse event logs for transaction
To run the example project, clone the repo, and run pod install
from the Example/web3swiftExample directory first.
Web3swift requires Swift 4.0 and internally depends from pods that require Swift 4.0 (CryptoSwift).
Internally depends from libsodium, CryptoSwift, Alamofire, PromiseKit and AwaitKit. Promise wrappers will be separated in further releases. Special thanks for Gnosis team and their library Bivrost-swift for inspiration for the ABI decoding approach.
web3swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'web3swift'
When using this pod references to this repo, Bankex and Bankex Foundation are appreciated.
Alex Vlasov, @shamatar, [email protected]
Petr Korolev, @skywinder, [email protected]
web3swift is available under the Apache License 2.0 license. See the LICENSE file for more info.