lib/sibit.rb in sibit-0.18.2 vs lib/sibit.rb in sibit-0.18.3

- old
+ new

@@ -79,9 +79,23 @@ first_one do |api| api.balance(address) end end + # Get the height of the block. + def height(hash) + first_one do |api| + api.height(hash) + end + end + + # Get the hash of the next block. + def next_of(hash) + first_one do |api| + api.next_of(hash) + end + end + # Get recommended fees, in satoshi per byte. The method returns # a hash: { S: 12, M: 45, L: 100, XL: 200 } def fees first_one(&:fees) end