doge_coin 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/doge_coin/client.rb +3 -2
- data/lib/doge_coin/version.rb +1 -1
- 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: 4fa0944c60fe64fb4e7d023b0045c193cd3589b0
|
4
|
+
data.tar.gz: 2d5f84eb18f011bc07da619726bf5f999a1caf62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93f3e05dbcc1162221a0fa57a20576129c50bb3ffab0f07efb633750090f05eb33b56cd74ed14fedda5a5b1dd691a355487140d90cff5790074720aaa9507d11
|
7
|
+
data.tar.gz: 57e9f58b29a1bcb72eeae024e8a1736c9b1682e56674f1c1e2c3da5e01f51c7a605820cf9fccf4d413fb7f2709063499969f2d906cd464bc839051c7de768114
|
data/lib/doge_coin/client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'doge_coin/errors'
|
2
|
+
require 'json'
|
2
3
|
require 'faraday'
|
3
4
|
|
4
5
|
module DogeCoin
|
@@ -21,7 +22,7 @@ module DogeCoin
|
|
21
22
|
|
22
23
|
# Returns the amount transactions of the last blocks as an Array object
|
23
24
|
def transactions
|
24
|
-
|
25
|
+
JSON.parse(call_blockchain_api("transactions"))
|
25
26
|
end
|
26
27
|
|
27
28
|
# Returns the address balance (received - sent)
|
@@ -42,7 +43,7 @@ module DogeCoin
|
|
42
43
|
# See http://dogechain.info/chain/Dogecoin/q/nethash
|
43
44
|
def nethash interval = 500, start = 0, stop = false
|
44
45
|
suffixe = stop ? "/#{stop}" : ''
|
45
|
-
|
46
|
+
JSON.parse(call_blockchain_api("nethash/#{interval}/#{start}#{suffixe}?format=json"))
|
46
47
|
end
|
47
48
|
|
48
49
|
# Returns the total sent
|
data/lib/doge_coin/version.rb
CHANGED