Class: Nem::Endpoint::Block

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

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

#at_public(height) ⇒ Nem::Model::Block



16
17
18
# 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) ⇒ Nem::Model::Block Also known as: get

Parameters:

  • hash

Returns:

See Also:



7
8
9
# File 'lib/nem/endpoint/block.rb', line 7

def find(hash)
  Nem::Model::Block.new_from_block request!(:get, '/block/get', blockHash: hash)
end