module Nis::Endpoint::Chain::LastBlock
Public Instance Methods
chain_last_block()
click to toggle source
@return [Nis::Struct::Block] @see nemproject.github.io/#last-block-of-the-block-chain-score
# File lib/nis/endpoint/chain/last_block.rb, line 6 def chain_last_block request!(:get, '/chain/last-block') do |res| res[:transactions] = res[:transactions].map { |t| Nis::Struct::Transaction.new(t) } Nis::Struct::Block.build res end end