You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-recevied transaction id from geth node server but not able to see that transaction id at etherscan.io [\#200](https://github.com/skywinder/web3swift/issues/200)
252
+
-received transaction id from geth node server but not able to see that transaction id at etherscan.io [\#200](https://github.com/skywinder/web3swift/issues/200)
253
253
- How do I fetch information such as balance, decimal,symbol and name of ERC20token ? [\#199](https://github.com/skywinder/web3swift/issues/199)
254
254
- Starscream 3.1.0 not compatible with Swift 5.0 [\#195](https://github.com/skywinder/web3swift/issues/195)
255
-
- How to Connect infuraWebsocket and subsribe perticular event in swift? [\#193](https://github.com/skywinder/web3swift/issues/193)
255
+
- How to Connect infuraWebsocket and subsribe particular event in swift? [\#193](https://github.com/skywinder/web3swift/issues/193)
256
256
- Use of unresolved identifier 'Wallet' [\#192](https://github.com/skywinder/web3swift/issues/192)
257
257
- V in Signed Message Hash not being calculated properly [\#191](https://github.com/skywinder/web3swift/issues/191)
258
258
- Not possible to calculate fast, normal and cheap transaction fee ? [\#190](https://github.com/skywinder/web3swift/issues/190)
Copy file name to clipboardExpand all lines: README.md
+26-21Lines changed: 26 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# web3swift
2
2
**web3swift** is an iOS toolbelt for interaction with the Ethereum network.
3
3
4
-
## Social medias
4
+
## Social media
5
5
[Join our discord](https://discord.gg/8bHCNmhS7x) or [Telegram](https://t.me/web3swift) if you need support or want to contribute to web3swift development!
-[x] 🕵️♂️ Possibility to **add or remove "middleware" that intercepts**, modifies and even **cancel transaction** workflow on stages "before assembly", "after assembly" and "before submission"
58
58
-[x] ✅**Literally following the standards** (BIP, EIP, etc):
-[x]**And many others***(For details about this EIP's look at [Documentation page](https://github.com/web3swift-team/web3swift/blob/master/Documentation/))*: EIP-681, EIP-721, EIP-165, EIP-777, EIP-820, EIP-888, EIP-1400, EIP-1410, EIP-1594, EIP-1643, EIP-1644, EIP-1633, EIP-721, EIP-1155, EIP-1376, ST-20
62
62
-[x]**RLP encoding**
63
63
-[x] Base58 encoding scheme
@@ -66,6 +66,27 @@
66
66
67
67
## Installation
68
68
69
+
### Swift Package (Recommended)
70
+
The [Swift Package Manager](https://swift.org/package-manager/"") is a tool for automating the distribution of Swift code that is well integrated with Swift build system.
71
+
72
+
Once you have your Swift package set up, adding `web3swift` as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
Or if your project is not a package follow these guidelines on [how to add a Swift Package to your Xcode project](https://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).
80
+
81
+
82
+
## Example usage
83
+
In the imports section:
84
+
85
+
```swift
86
+
importweb3swift
87
+
importWeb3Core
88
+
```
89
+
69
90
### CocoaPods
70
91
71
92
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
@@ -91,23 +112,7 @@ Then, run the following command:
91
112
$ pod install
92
113
```
93
114
94
-
### Swift Package
95
-
The [Swift Package Manager](https://swift.org/package-manager/"") is a tool for automating the distribution of Swift code and is integrated into the swift compiler.
96
-
97
-
Once you have your Swift package set up, adding Alamofire as a dependency is as easy as adding it to the `dependencies` value of your `Package.swift`.
> **WARNING**: CocoaPods is a powerful tool for managing dependencies in iOS development, but it also has some limitations that preventing us of providing first class support there. We highly recommend using SPM first as using CocoaPods will delay new updates and bug fixes being delivered to you.
111
116
112
117
### Send Ether
113
118
```swift
@@ -132,7 +137,7 @@ let response = try await readTX.callContractMethod()
132
137
let abiString ="[]"// some ABI string
133
138
let bytecode = Data.fromHex("") // some ABI bite sequence
134
139
let contract = web3.contract(abiString, at: nil, abiVersion: 2)!
135
-
let parameters= [...] as [AnyObject]
140
+
let parameters: [Any] = [...]
136
141
let deployOp = contract.prepareDeploy(bytecode: bytecode, constructor: contract.contract.constructor, parameters: parameters)!
0 commit comments