onchain 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/onchain/block_chain.rb +8 -0
- 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: 4842e854a22d1510b4299e4410d1a28340be9838
|
4
|
+
data.tar.gz: 588ae51421710cf89725901bfccf7335bd4d0b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eed0ff672c4173c3c2c5836fbbba6fe50118530f0bae073096f03d83509fea6e3ff38f3ed86b9c733758df8ae7cd55228f45ec535152f4ebf961c0660fd9f7f1
|
7
|
+
data.tar.gz: 84801fef500cd3a5cc4ae6922a17697148fd23eb2515ad27c43a279229945b5cdfabc9969760ae3871f8e3cf562577c8767369c47964136e2984cca32e44555a
|
data/lib/onchain/block_chain.rb
CHANGED
@@ -75,6 +75,14 @@ class OnChain::BlockChain
|
|
75
75
|
return ret
|
76
76
|
end
|
77
77
|
|
78
|
+
def get_history_for_addresses(addresses)
|
79
|
+
history = []
|
80
|
+
addresses.each do |address|
|
81
|
+
history << address_history(address)
|
82
|
+
end
|
83
|
+
return history
|
84
|
+
end
|
85
|
+
|
78
86
|
def get_balance_satoshi(address)
|
79
87
|
return (get_balance(address).to_f * 100000000).to_i
|
80
88
|
end
|