getBlockByNumber method

Future<Map<String, dynamic>?> getBlockByNumber(
  1. String block, [
  2. bool fullTx = false
])

Gets a block by number.

Implementation

Future<Map<String, dynamic>?> getBlockByNumber(String block,
    [bool fullTx = false]) async {
  return call<Map<String, dynamic>?>('eth_getBlockByNumber', [block, fullTx]);
}