class Nem::Endpoint::Block

Public Instance Methods

at_public(height) click to toggle source

@param height @return [Nem::Model::Block] @see nemproject.github.io/#getting-a-block-with-a-given-height

# File lib/nem/endpoint/block.rb, line 16
def at_public(height)
  Nem::Model::Block.new_from_block request!(:post, '/block/at/public', height: height)
end
find(hash) click to toggle source

@param hash @return [Nem::Model::Block] @see nemproject.github.io/#

# File lib/nem/endpoint/block.rb, line 7
def find(hash)
  Nem::Model::Block.new_from_block request!(:get, '/block/get', blockHash: hash)
end
Also aliased as: get
get(hash)
Alias for: find