SVBlockchain
示例
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
支持的货币/区块链
目前支持以下区块链货币
- 比特币
- 莱特币
- 以太币
- 以太币经典
- 瑞波币
- 比特币现金
用法
非常简单易用!...
let service = BitcoinService()
service.coinsForAddress(address: "1DECAF2uSpFTP4L1fAHR8GCLrPqdwdLse9", withCallback: { (number) in
// 'number' constains the balance for this bitcoin
})
有关帮助,请查看示例 pod 中的 Tests.swift
安装
SVBlockchain可通过CocoaPods获取。要安装它,只需将以下行添加到您的Podfile中:
pod 'SVBlockchain'
作者
Sushant Verma
许可证
SVBlockchain采用MIT许可证。有关更多信息,请参阅LICENSE文件。