44uk/nis-ruby

View on GitHub
lib/nis/endpoint/node/active_peers.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Nis::Endpoint
  module Node::ActivePeers
    # @return [Nis::Struct::Node]
    # @see https://nemproject.github.io/#maximum-chain-height-in-the-active-neighborhood
    def node_active_peers_max_chain_height
      request!(:get, '/node/active-peers/max-chain-height') do |res|
        Nis::Struct::BlockHeight.build res
      end
    end
  end
end