Swift based Insight API client
To integrate the SwiftInsightClient into your Xcode project using Carthage, specify it in your Cartfile:
github "vergecurrency/SwiftInsightClient" "master"
let urlSession = URLSession(configuration: .default)
let client = VIClient(urlSession: urlSession, endpoint: "https://blockexplorer.com/api")
client.getInfo { (info: VIInfo) in
print(info?.blocks)
}
More coming soon...
SwiftInsightClient is available under the MIT license. See the LICENSE
file for more info.