class ArkEcosystem::Client::API::Delegates
Public Instance Methods
all(parameters = {})
click to toggle source
Get all delegates.
@param parameters [Hash]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/delegates.rb, line 13 def all(parameters = {}) @client.get('delegates', parameters) end
blocks(id, parameters = {})
click to toggle source
Get the blocks for the given delegate.
@param id [String] @param parameters [Hash]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/delegates.rb, line 32 def blocks(id, parameters = {}) @client.get("delegates/#{id}/blocks", parameters) end
show(id)
click to toggle source
Get the delegate by the given id.
@param id [String]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/delegates.rb, line 22 def show(id) @client.get("delegates/#{id}") end
voters(id, parameters = {})
click to toggle source
Get the votes for the given delegate.
@param id [String] @param parameters [Hash]
@return [Faraday::Response]
# File lib/arkecosystem/client/api/delegates.rb, line 42 def voters(id, parameters = {}) @client.get("delegates/#{id}/voters", parameters) end