Class: Neo::Block

Inherits:
Object
  • Object
show all
Defined in:
lib/neo/block.rb

Overview

Represents a block in the Neo blockchain

Class Method Summary collapse

Class Method Details

.heightNumeric

Gets the number of blocks in the main chain.


8
9
10
# File 'lib/neo/block.rb', line 8

def height
  Neo.rpc 'getblockcount'
end