Class: BsvRubyExplorer::Api
- Inherits:
-
Object
- Object
- BsvRubyExplorer::Api
- Defined in:
- lib/bsv_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
Instance Method Details
#address_full_txs(address) ⇒ Object
12 13 14 15 |
# File 'lib/bsv_ruby_explorer/api.rb', line 12 def address_full_txs(address) query = { method: 'blockchain.address.info', 'params[]' => address } api_http_get(query) end |
#block_full_txs(hash) ⇒ Object
7 8 9 10 |
# File 'lib/bsv_ruby_explorer/api.rb', line 7 def block_full_txs(hash) query = { method: 'blockchain.block.info', 'params[]' => hash } api_http_get(query) end |
#tx_info(hash) ⇒ Object
17 18 19 20 |
# File 'lib/bsv_ruby_explorer/api.rb', line 17 def tx_info(hash) query = { method: 'blockchain.transaction.verbose', 'params[]' => hash } api_http_get(query) end |