Skip to content

Commit ccdd901

Browse files
author
Ebenezer Ackon
committed
cleanup example usages
1 parent 39cb813 commit ccdd901

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Generic badge](https://img.shields.io/badge/EtherscanApi-UP-brightgreen.svg)](https://api.etherscan.io/api?module=stats&action=ethprice&apikey=YourApiKeyToken)
2-
[![Generic badge](https://img.shields.io/badge/CircleCI-UP-brightgreen.svg)](https://circleci.com/gh/EbenezerGH/hello_etherscan/tree/master)
3-
[![Generic badge](https://img.shields.io/badge/Version-v0.8.0-lightgrey.svg)](https://github.com/EbenezerGH/etherscan-android-api/releases)
2+
[![Generic badge](https://img.shields.io/badge/CircleCI-PASS-brightgreen.svg)](https://circleci.com/gh/EbenezerGH/hello_etherscan/tree/master)
3+
[![Generic badge](https://img.shields.io/badge/Version-v0.9.0-lightgrey.svg)](https://jitpack.io/#EbenezerGH/etherscan-android-api)
44
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/EbenezerGH/hello_etherscan/blob/update-documentation/LICENSE)
55

66
# etherscan-android-api
@@ -23,42 +23,35 @@ Add JitPack to your root build.gradle at the end of repositories
2323
Add the dependency
2424
```
2525
dependencies {
26-
implementation 'com.github.EbenezerGH:hello_etherscan:v0.8.0'
26+
implementation 'com.github.EbenezerGH:hello_etherscan:v0.9.0'
2727
}
2828
```
29-
import a reactive android library to handle the reactive stream being passed into your module. For instance I used the following:
30-
31-
32-
implementation 'io.reactivex.rxjava2:rxandroid:x.y.z'
33-
implementation 'io.reactivex.rxjava2:rxkotlin:x.y.z'
3429

3530

3631
Optional: Call `ApiKey.takeOff.setApiKey("[your api key here]")` in your module's application class when recording api usage in the etherscan.io console. [see [example implementation](https://github.com/EbenezerGH/etherscan-android-api/blob/master/etherscan-sample/src/main/java/jfyg/etherscan/helloetherescan/EtherscanSampleApplication.kt)]
3732
```
3833
ApiKey.takeOff.setApiKey("1I7CRNU2QIU253UBPFVB5UV2C2PBDURAIYZ")
3934
```
4035

41-
Create an Instance of one of the reactive Singles and access values by specifying thread and subscribing. [see [example implementation](https://github.com/EbenezerGH/etherscan-android-api/blob/master/etherscan-sample/src/main/java/jfyg/etherscan/helloetherescan/SampleActivity.kt)]
36+
Create an Instance of one of the reactive singles and access values by specifying thread and subscribing. [see [example implementation](https://github.com/EbenezerGH/etherscan-android-api/blob/master/etherscan-sample/src/main/java/jfyg/etherscan/helloetherescan/SampleActivity.kt)]
4237

4338
Currently Available: ``[accounts, contracts, transactions, blocks, stat]``
4439

4540
Coming Soon: ``[eventLogs, geth, websockets, tokens]``
4641

4742
```
48-
val stat = Stat()
4943
val account = Account()
5044
val contract = ContractABI()
51-
val tx = TxStatus()
5245
val blocks = BlocksMined()
5346
54-
//account test
47+
//account
5548
account.getERC20Tokens("0x4e83362442b8d1bec281594cea3050c8eb01311c")
5649
.observeOn(AndroidSchedulers.mainThread())
5750
?.subscribeBy(
5851
onSuccess = { Log.d(TAG, "The Account Size of Transactions is: ${it.size}") },
5952
onError = { Log.d(TAG, "error receiving ERC20") })
6053
61-
//contracts test
54+
//contracts
6255
contract.getContractABI("0xBB9bc244D798123fDe783fCc1C72d3Bb8C189413")
6356
.observeOn(AndroidSchedulers.mainThread())
6457
?.subscribeBy(
@@ -67,7 +60,7 @@ Coming Soon: ``[eventLogs, geth, websockets, tokens]``
6760
6861
6962
70-
//blocks test
63+
//blocks
7164
blocks.getBlocksMined("2165403")
7265
.observeOn(AndroidSchedulers.mainThread())
7366
?.subscribeBy(

0 commit comments

Comments
 (0)