Method: Lisk::API#get_block

Defined in:
lib/lisk/api.rb

#get_block(id) ⇒ Object

Get the number of remaining local sync blocks.



80
81
82
83
84
85
86
87
# File 'lib/lisk/api.rb', line 80

def get_block id
  block = self.blocks_get_by_id id
  if block["success"]
    return block["block"]
  else
    return nil
  end
end