module Minter::Api::CandidateResource
Public Instance Methods
candidate(public_key:, height: nil)
click to toggle source
# File lib/minter/api/resources/candidate_resource.rb, line 6 def candidate(public_key:, height: nil) path = "/candidate/#{public_key}" params = { height: height }.compact get(path, params) end
candidates(height: 1, include_stakes: nil)
click to toggle source
# File lib/minter/api/resources/candidate_resource.rb, line 12 def candidates(height: 1, include_stakes: nil) path = "/candidates" params = { height: height, include_stakes: nil }.compact get(path, params) end