Class: StellarRubyExplorer::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/stellar_ruby_explorer/api.rb

Overview

Main class of this library, contains the following public methods: address_full_txs and tx_info

Instance Method Summary collapse

Instance Method Details

#address_full_txs(address) ⇒ Object



7
8
9
10
# File 'lib/stellar_ruby_explorer/api.rb', line 7

def address_full_txs(address)
  query = { limit: 20, order: 'desc' }
  api_http_get("accounts/#{address}/transactions", query)
end

#tx_info(hash) ⇒ Object



12
13
14
# File 'lib/stellar_ruby_explorer/api.rb', line 12

def tx_info(hash)
  api_http_get("transactions/#{hash}")
end