Class: CronosChainScanner::Blocks
- Inherits:
-
Object
- Object
- CronosChainScanner::Blocks
- Defined in:
- lib/cronos_chain_scanner/blocks.rb
Constant Summary collapse
- DEFAULT_HASH =
{ module: 'block' }.freeze
Class Method Summary collapse
Class Method Details
.eth_block_number ⇒ Object
8 9 10 11 12 |
# File 'lib/cronos_chain_scanner/blocks.rb', line 8 def eth_block_number hash = DEFAULT_HASH.merge(action: 'eth_block_number') Request.get hash end |
.getblockreward(blockno) ⇒ Object
14 15 16 17 18 |
# File 'lib/cronos_chain_scanner/blocks.rb', line 14 def getblockreward(blockno) hash = DEFAULT_HASH.merge(action: 'getblockreward', blockno: blockno) Request.get hash end |