Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/essentiaone/essentia-bridges-api-ios
- Owner: essentiaone
- License: mit
- Created: 2018-07-04T12:52:43.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-06-19T07:27:25.000Z (over 5 years ago)
- Last Synced: 2024-10-31T15:54:03.651Z (2 months ago)
- Topics: badge, balance, bitcoin, blockchain, blockchain-bridge, bridges-api, cocoapods, http-requests, swift, transaction, transaction-history
- Language: Swift
- Size: 219 KB
- Stars: 10
- Watchers: 5
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
### CocoaPodsTo 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).