onchain 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/onchain/block_chain.rb +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d922bba5d40cdba4b60569952eb452a3f2a6efd
4
- data.tar.gz: b8c74edfc9dd67c6a18ded412f0ec464cfa7bf3c
3
+ metadata.gz: 4842e854a22d1510b4299e4410d1a28340be9838
4
+ data.tar.gz: 588ae51421710cf89725901bfccf7335bd4d0b8e
5
5
  SHA512:
6
- metadata.gz: 1174acbe66b8b94d109573dd60cea267079f56ab6a848686f944ad79d64a4ae63acd6d475b0cd8f04108da14016f6c8d6675c724177e37995dff4939ddf84a77
7
- data.tar.gz: 876700bfa69e07e578579c73b9c3f4d2a2f252c56907539c7b197b18b80d79631142f2e86e129cc02173d1958b4ec4c4b8f24da56fe331d5c579f89d8fb38b8d
6
+ metadata.gz: eed0ff672c4173c3c2c5836fbbba6fe50118530f0bae073096f03d83509fea6e3ff38f3ed86b9c733758df8ae7cd55228f45ec535152f4ebf961c0660fd9f7f1
7
+ data.tar.gz: 84801fef500cd3a5cc4ae6922a17697148fd23eb2515ad27c43a279229945b5cdfabc9969760ae3871f8e3cf562577c8767369c47964136e2984cca32e44555a
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onchain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.7
4
+ version: 1.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Purton