Module: Nis::Endpoint::Local::Chain

Included in:
Nis
Defined in:
lib/nis/endpoint/local/chain.rb

Instance Method Summary collapse

Instance Method Details

#local_chain_blocks_after(block_height:) ⇒ Array <Nis::Struct::Block>

Parameters:

  • block_height (String)

Returns:

See Also:



7
8
9
10
11
12
13
# 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