Skip to content

Commit

Permalink
Dump version to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcmz committed Jul 16, 2022
1 parent 89475f3 commit f72ab1b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ https://outblock.github.io/flow-swift/
This is a Swift Package, and can be installed via Xcode with the URL of this repository:

```swift
.package(name: "Flow", url: "https://github.com/outblock/flow-swift.git", from: "0.2.0")
.package(name: "Flow", url: "https://github.com/outblock/flow-swift.git", from: "0.2.2")
```

## Config
Expand All @@ -55,6 +55,18 @@ let chainID = Flow.ChainID.custom(name: "Alchemy-Testnet", endpoint:endpoint)
flow.configure(chainID: chainID)
```

### (Optional) GRPC Acces Node

If you want to use g-RPC access client better than HTTP client, please import this repo instead:
[flow-swift-gRPC](https://github.com/Outblock/flow-swift-gRPC)

Here is the example how you initialize it:
```swift
let accessAPI = Flow.GRPCAccessAPI(chainID: .mainnet)!
let chainID = Flow.ChainID.mainnet
flow.configure(chainID: chainID, accessAPI: accessAPI)
```


## Querying the Flow Network
After you have established a connection with an access node, you can query the Flow network to retrieve data about blocks, accounts, events and transactions. We will explore how to retrieve each of these entities in the sections below.
Expand Down

0 comments on commit f72ab1b

Please sign in to comment.