Class: Nem::Endpoint::Local::Chain

Inherits:
Base
  • Object
show all
Defined in:
lib/nem/endpoint/local/chain.rb

Overview

Instance Method Summary collapse

Methods inherited from Base

#current_node, #initialize, #next_node!, #request, #request!

Constructor Details

This class inherits a constructor from Nem::Endpoint::Base

Instance Method Details

#blocks_after(height) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/nem/endpoint/local/chain.rb', line 7

def blocks_after(height)
  request!(:post, '/local/chain/blocks-after', height: height) do |res|
    res[:data].map do |data|
      Nem::Model::ExpelorerBlock.new_from_explorer_block(data)
    end
  end
end