Skip to content

web3swift-team/web3swift

Repository files navigation

web3swift

Version License Platform

Functionality

  • 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

Example

To run the example project, clone the repo, and run pod install from the Example/web3swiftExample directory first.

Requirements

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.

Installation

web3swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'web3swift'

Appreciation

When using this pod references to this repo, Bankex and Bankex Foundation are appreciated.

Author

Alex Vlasov, @shamatar, [email protected]

Petr Korolev, @skywinder, [email protected]

License

web3swift is available under the Apache License 2.0 license. See the LICENSE file for more info.