Skip to content

Commit 9d50166

Browse files
Update README.md
1 parent 9a52c7e commit 9d50166

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,15 @@ func prepareTransaction(parameters: Data, gasLimit: BigUInt = 27500, completion:
213213
}
214214
```
215215

216+
#### How to set test local node?
217+
You can write something like that:
218+
```swift
219+
func setLocalNode(port: Int = 8545) -> Web3? {
220+
guard let web3 = Web3(url: URL(string: "http://127.0.0.1:\(port)")!) else { return nil }
221+
return web3
222+
}
223+
```
224+
216225
## Credits
217226

218227
Alex Vlasov, [@shamatar](https://github.com/shamatar), [email protected]

0 commit comments

Comments
 (0)