TestsTested | ✓ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Feb 2015 |
Maintained by Matt Matteson, Devon Gundry, Ryan Smith, Eric Rykwalder, Oleg Andreev.
Depends on: | |
CoreBitcoin | ~> 0.6.0 |
ISO8601DateFormatter | = 0.7 |
The Official iOS SDK for Chain's Bitcoin API.
Chain is available through CocoaPods. To install it, simply add the following line to your 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);
}];
The Chain API Documentation is available at https://chain.com/docs/ios
This project uses CocoaPods for end-user app, but for its own static lib and unit tests uses dependencies directly (CoreBitcoin submodule with OpenSSL).
These dependencies are not needed for the end-user, they will automatically link via CocoaPods. But for running unit tests you have to checkout submodule and build 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