module Nis::Endpoint::Local::Chain

Public Instance Methods

local_chain_blocks_after(block_height:) click to toggle source

@param [String] block_height @return [Array <Nis::Struct::Block>] @see nemproject.github.io/#getting-part-of-a-chain

# File lib/nis/endpoint/local/chain.rb, line 7
def local_chain_blocks_after(block_height:)
  request!(:post, '/local/chain/blocks-after',
    height: block_height
  ) do |res|
    res[:data].map { |ebvm| Nis::Struct::ExplorerBlockViewModel.build(ebvm) }
  end
end