测试已测试 | ✓ |
语语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布日期 | 2015年2月 |
由 Matt Matteson,Devon Gundry,Ryan Smith,Eric Rykwalder,Oleg Andreev 维护。
依赖 | |
CoreBitcoin | ~> 0.6.0 |
ISO8601DateFormatter | = 0.7 |
Chain 官方 iOS SDK。
Chain 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod 'Chain', '~>2.0'
Chain *chain = [Chain sharedInstanceWithToken:@"GUEST-TOKEN"];
NSString *address = @"1A3tnautz38PZL15YWfxTeh8MtuMDhEPVB";
[chain getAddress:address completionHandler:^(NSDictionary *dict, NSError *error) {
NSLog(@"data=%@ error=%@", dict, error);
}];
Chain API 文档在 https://chain.com/docs/ios 上提供。
此项目使用 CocoaPods 进行最终用户应用程序,但对其本身的静态库和单元测试使用依赖直接(包含 OpenSSL 的 CoreBitcoin 子模块)。
这些依赖对于最终用户来说不是必需的,它们将通过 CocoaPods 自动链接。但为了运行单元测试,您必须检出子模块并构建 OpenSSL
$ git submodule update --init
$ cd CoreBitcoin
$ ./update_openssl.sh
$ git tag X.Y.Z
$ git push origin master --tags
$ pod trunk push Chain.podspec