Module: HelloBlock::Address::Batch
Instance Method Summary collapse
- #get(queries = {}) ⇒ Object
- #get_transactions(queries = {}) ⇒ Object
- #get_unspents(queries = {}) ⇒ Object
Instance Method Details
#get(queries = {}) ⇒ Object
24 25 26 27 |
# File 'lib/helloblock/address.rb', line 24 def get(queries = {}) res = HelloBlock::Request.get("#{RESOURCE}", query: queries) res["addresses"] end |
#get_transactions(queries = {}) ⇒ Object
29 30 31 32 |
# File 'lib/helloblock/address.rb', line 29 def get_transactions(queries = {}) res = HelloBlock::Request.get("#{RESOURCE}/transactions", query: queries) res["transactions"] end |
#get_unspents(queries = {}) ⇒ Object
34 35 36 37 |
# File 'lib/helloblock/address.rb', line 34 def get_unspents(queries = {}) res = HelloBlock::Request.get("#{RESOURCE}/unspents", query: queries) res["unspents"] end |