gitcoin_blockchain_explorer 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gitcoin_blockchain_explorer.rb +2 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 475d4c1a43914dffc5d270de9f32850503554920
|
4
|
+
data.tar.gz: c719be77f4a30a630c2fd0f5209214bdd663baec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 338d623abd635960b9cddfa099c662e9ae79660ad60f8400cde0fdc2afc85065e95e3014bc1cf1fc557c564c8a47e3733e266eca143189c2df2c3b6ee7c03800
|
7
|
+
data.tar.gz: d49b4e9ac69b90c582bc27131201e2f1f3858895798421ae777c0393e33b95ea693f66e775d0983f62cf99c25da5d904c167d52ccc7d13621a3d290b3b78b84e
|
@@ -11,7 +11,6 @@ module GitcoinBlockchainExplorer
|
|
11
11
|
self.cex_api_base = 'https://cex.io/api/'
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
14
|
def last_block()
|
16
15
|
HTTParty.get("#{self.blockr_api_base}coin/info")['data']
|
17
16
|
end
|
@@ -38,11 +37,11 @@ module GitcoinBlockchainExplorer
|
|
38
37
|
end
|
39
38
|
|
40
39
|
def address(public_address)
|
41
|
-
HTTParty.get("#{
|
40
|
+
HTTParty.get("#{self.blockr_api_base}address/info/#{public_address}")['data']
|
42
41
|
end
|
43
42
|
|
44
43
|
def address_transactions(public_address)
|
45
|
-
HTTParty.get("#{
|
44
|
+
HTTParty.get("#{self.blockr_api_base}address/txs/#{public_address}")['data']
|
46
45
|
end
|
47
46
|
end
|
48
47
|
end
|