Class: DecredRubyExplorer::Api
- Inherits:
-
Object
- Object
- DecredRubyExplorer::Api
- Defined in:
- lib/decred_ruby_explorer/api.rb
Overview
Main class of this library, contains the following public methods: block_full_txs, address_full_txs and tx_info
Instance Method Summary collapse
- #address_full_txs(address, page = 0) ⇒ Object
- #block_full_txs(block, page = 0) ⇒ Object
- #tx_info(hash) ⇒ Object
Instance Method Details
#address_full_txs(address, page = 0) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/decred_ruby_explorer/api.rb', line 16 def address_full_txs(address, page = 0) query = { address: address, pageNum: page } api_http_get('txs/', query: query) end |
#block_full_txs(block, page = 0) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/decred_ruby_explorer/api.rb', line 7 def block_full_txs(block, page = 0) query = { block: block, pageNum: page } api_http_get('txs/', query: query) end |
#tx_info(hash) ⇒ Object
25 26 27 |
# File 'lib/decred_ruby_explorer/api.rb', line 25 def tx_info(hash) api_http_get("tx/#{hash}") end |