class Nem::Endpoint::Chain

Public Instance Methods

height() click to toggle source

@return [Numeric] @see nemproject.github.io/#block-chain-height

# File lib/nem/endpoint/chain.rb, line 12
def height
  request!(:get, '/chain/height')[:height]
end
last_block() click to toggle source

@return [Nem::Model::Block] @see nemproject.github.io/#last-block-of-the-block-chain-score

# File lib/nem/endpoint/chain.rb, line 6
def last_block
  Nem::Model::Block.new_from_block request!(:get, '/chain/last-block')
end
score() click to toggle source

@return [String] @see nemproject.github.io/#block-chain-score

# File lib/nem/endpoint/chain.rb, line 18
def score
  request!(:get, '/chain/score')[:score]
end