Class: ArkEcosystem::Client::API::Transactions
- Defined in:
- lib/arkecosystem/client/api/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.
-
#create(parameters) ⇒ Faraday::Response
Create new transactions.
-
#search(parameters) ⇒ Faraday::Response
Search all 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.
-
#types ⇒ Faraday::Response
Get a list of all transaction types.
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.
13 14 15 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 13 def all(parameters = {}) @client.get('transactions', parameters) end |
#all_unconfirmed(parameters = {}) ⇒ Faraday::Response
Get all unconfirmed transactions.
40 41 42 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 40 def all_unconfirmed(parameters = {}) @client.get('transactions/unconfirmed', parameters) end |
#create(parameters) ⇒ Faraday::Response
Create new transactions.
22 23 24 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 22 def create(parameters) @client.post('transactions', parameters) end |
#search(parameters) ⇒ Faraday::Response
Search all transactions.
58 59 60 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 58 def search(parameters) @client.post('transactions/search', parameters) end |
#show(id) ⇒ Faraday::Response
Get the transaction by the given id.
31 32 33 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 31 def show(id) @client.get("transactions/#{id}") end |
#show_unconfirmed(id) ⇒ Faraday::Response
Get the unconfirmed transaction by the given id.
49 50 51 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 49 def show_unconfirmed(id) @client.get("transactions/unconfirmed/#{id}") end |
#types ⇒ Faraday::Response
Get a list of all transaction types.
65 66 67 |
# File 'lib/arkecosystem/client/api/transactions.rb', line 65 def types @client.get('transactions/types') end |