Returns information about a block by block number.
Parameters
BLOCKNUMBER
[required] - a hex code of an integer representing the BLOCKNUMBER or one of the following special params:
latest
: get block data of the latest block
pending
: get block data of pending block
earliest
: get the genesis block
FULLTX
[required] - a boolean value specified whether you want to get transactions list or not
params: [ '0x0', true ]
Returns
RETURN VALUE
- block data of the given BLOCKNUMBER
See eth_getBlockByHash
Successful Operation