Class: ArkEcosystem::Client::API::One::Transactions
- Defined in:
- lib/arkecosystem/client/api/one/transactions.rb
Overview
Methods for the Transactions API
Instance Method Summary collapse
-
#all(parameters = {}) ⇒ Faraday::Response
Get all transactions.
-
#all_unconfirmed(parameters = {}) ⇒ Faraday::Response
Get all unconfirmed transactions.
-
#show(id) ⇒ Faraday::Response
Get the transaction by the given id.
-
#show_unconfirmed(id) ⇒ Faraday::Response
Get the unconfirmed transaction by the given id.
Methods inherited from Base
Constructor Details
This class inherits a constructor from ArkEcosystem::Client::API::Base
Instance Method Details
#all(parameters = {}) ⇒ Faraday::Response
Get all transactions.
17 18 19 |
# File 'lib/arkecosystem/client/api/one/transactions.rb', line 17 def all(parameters = {}) @client.get('transactions', parameters) end |
#all_unconfirmed(parameters = {}) ⇒ Faraday::Response
Get all unconfirmed transactions.
35 36 37 |
# File 'lib/arkecosystem/client/api/one/transactions.rb', line 35 def all_unconfirmed(parameters = {}) @client.get('transactions/unconfirmed', parameters) end |
#show(id) ⇒ Faraday::Response
Get the transaction by the given id.
26 27 28 |
# File 'lib/arkecosystem/client/api/one/transactions.rb', line 26 def show(id) @client.get('transactions/get', id: id) end |
#show_unconfirmed(id) ⇒ Faraday::Response
Get the unconfirmed transaction by the given id.
44 45 46 |
# File 'lib/arkecosystem/client/api/one/transactions.rb', line 44 def show_unconfirmed(id) @client.get('transactions/unconfirmed/get', id: id) end |