Method: Coinbase::Validator.list
- Defined in:
- lib/coinbase/validator.rb
.list(network, asset_id, status: nil) ⇒ Enumerable<Coinbase::Validator>
Returns a list of Validators for the provided network and asset.
17 18 19 20 21 22 23 24 25 |
# File 'lib/coinbase/validator.rb', line 17 def self.list(network, asset_id, status: nil) network = Coinbase::Network.from_id(network) Coinbase::Pagination.enumerate(lambda { |page| list_page(network, asset_id, status, page) }) do |validator| new(validator) end end |