Method: Radiator::SSC::Blockchain#block_info

Defined in:
lib/radiator/ssc/blockchain.rb

#block_info(block_num) ⇒ Object

Example using the defaults, backed by Steem Engine:

rpc = Radiator::SSC::Blockchain.new
rpc.block_info(1)

Parameters:

  • block_num (Integer)

Returns:

  • the block with the specified block number of the sidechain


31
32
33
# File 'lib/radiator/ssc/blockchain.rb', line 31

def block_info(block_num)
  request(method: 'getBlockInfo', params: {blockNumber: block_num})
end