Skip to content
Permalink
6d0311f82e
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
12 lines (11 sloc) 330 Bytes
require 'new_api'
begin
# lists available validators
result = new_api.get_validators
puts "Validators detected: #{result.length}"
result.each do |val|
puts " #{val.validator_id}: #{val.description}"
end
rescue ValidatorClient::ApiError => e
puts "Exception when calling ValidationApi->get_validators: #{e}"
end