class ArkEcosystem::Client::API::Wallets

Methods for the Wallets API

Public Instance Methods

all(parameters = {}) click to toggle source

Get all wallets.

@param parameters [Hash]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 13
def all(parameters = {})
  @client.get('wallets', parameters)
end
received_transaction(id, parameters = {}) click to toggle source

Get the received transactions for the given wallet.

@param id [String] @param parameters [Hash]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 61
def received_transaction(id, parameters = {})
  @client.get("wallets/#{id}/transactions/received", parameters)
end
sent_transactions(id, parameters = {}) click to toggle source

Get the sent transactions for the given wallet.

@param id [String] @param parameters [Hash]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 51
def sent_transactions(id, parameters = {})
  @client.get("wallets/#{id}/transactions/sent", parameters)
end
show(id) click to toggle source

Get the wallet by the given id.

@param id [String]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 31
def show(id)
  @client.get("wallets/#{id}")
end
top(parameters = {}) click to toggle source

Get all wallets sorted by balance.

@param parameters [Hash]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 22
def top(parameters = {})
  @client.get('wallets/top', parameters)
end
transactions(id, parameters = {}) click to toggle source

Get the transactions for the given wallet.

@param id [String] @param parameters [Hash]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 41
def transactions(id, parameters = {})
  @client.get("wallets/#{id}/transactions", parameters)
end
votes(id) click to toggle source

Get the votes for the given wallet.

@param if [String]

@return [Faraday::Response]

# File lib/arkecosystem/client/api/wallets.rb, line 70
def votes(id)
  @client.get("wallets/#{id}/votes")
end