lib/nis/endpoint/local/chain.rb
module Nis::Endpoint
module Local
module Chain
# @param [String] block_height
# @return [Array <Nis::Struct::Block>]
# @see https://nemproject.github.io/#getting-part-of-a-chain
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
end
end
end