Class: CronosChain::Blocks

Inherits:
Object
  • Object
show all
Defined in:
lib/cronos_chain/blocks.rb

Constant Summary collapse

DEFAULT_HASH =
{ module: 'block' }.freeze

Class Method Summary collapse

Class Method Details

.eth_block_numberObject



8
9
10
11
12
# File 'lib/cronos_chain/blocks.rb', line 8

def eth_block_number
  hash = DEFAULT_HASH.merge(action: 'eth_block_number')

  Request.get hash
end