Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/essentiaone/essentia-bridges-api-ios

Bridges API wrapper for iOS application.
https://github.com/essentiaone/essentia-bridges-api-ios

badge balance bitcoin blockchain blockchain-bridge bridges-api cocoapods http-requests swift transaction transaction-history

Last synced: about 2 months ago
JSON representation

Bridges API wrapper for iOS application.

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.com/essentiaone/essentia-bridges-api-ios.svg?branch=develop)](https://travis-ci.com/essentiaone/essentia-bridges-api-ios)
[![Badge w/ Version](https://cocoapod-badges.herokuapp.com/v/essentia-bridges-api-ios/badge.png)](https://cocoadocs.org/docsets/essentia-bridges-api-ios)
[![Badge w/ Platform](https://cocoapod-badges.herokuapp.com/p/essentia-bridges-api-ios/badge.svg)](https://cocoadocs.org/docsets/essentia-bridges-api-ios)
[![Badge w/ Licence](https://cocoapod-badges.herokuapp.com/l/essentia-bridges-api-ios/badge.svg)](https://cocoadocs.org/docsets/essentia-bridges-api-ios)

# Essentia Brides API (Swift)
Swift wrapper on [our bridges API](https://github.com/essentiaone/essentia-bridges-api) and other blockchain services.
## Features
### Ethereum
- Get balance
- Send transaction
- Get transaction count
- Call smart contract
- Get gas price
- Get gas estimate
- Get block number
- Get gas speed
- Get transaction by hash
-Get receipt of transaction
- Get token balance
-Get transaction history
-Get ERC20 tokens history
### Bitcoin
- Get balance
- Send transaction
- Get transaction history
- Get Unspent Transaction Output
- Get transaction by id
### Litecoin
- Get balance
- Send transaction
- Get transaction history
- Get Unspent Transaction Output
- Get transaction by id
### Bitcoin Cash
- Get balance
- Get transaction history
- Get transaction by id
- Send raw transaction
### Dash
- Get balance
- Send transaction
- Get transaction history
- Get Unspent Transaction Output
- Get transaction by id
## Installation
### CocoaPods

To integrate Bridges API into your Xcode project using CocoaPods, specify it in your Podfile:


pod 'essentia-bridges-api-ios'

## Communication

- If you **found a bug**, open an issue.
- If you **have a feature request**, open an issue.
- If you **want to contribute**, submit a pull request.
## How to use
1. Use instructions from https://github.com/essentiaone/essentia-bridges-api
2. Init crypto wallet
```Swift
let etherScanUrl = "http://api.etherscan.io"
let etherApiKey = ""
let serverUrl = ""
let etherScanInfo = EtherScanInfo(url: ethterScanUrl, apiKey: etherScanApiKey)
let wallet = CryptoWallet(serverUrl, etherScan: etherScanInfo)
```
or use one wallet directly
```Swift
let bitcoinWallet = BitcoinWallet(serverUrl)
```

3. Use essentia-bridges-api-ios
```Swift
let btcAddress = "1PGEjYqbk8CzmsFdRXQSwfAtZ7ieRWaAtA"
wallet.bitcoin.getBalance(for: btcAddress, result: { (result) in
print(result)
})
```
[Usage examples](https://github.com/essentiaone/essentia-bridges-api-ios/tree/develop/Essentia-bridges-api-ios-tests)

## License
essentia-bridges-api-ios is released under the [MIT License](https://github.com/essentiaone/essentia-bridges-api-ios/blob/develop/LICENSE.md).