getBlockByHash method

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

Gets a block by hash.

Implementation

Future<Map<String, dynamic>?> getBlockByHash(String hash,
    [bool fullTx = false]) async {
  return call<Map<String, dynamic>?>('eth_getBlockByHash', [hash, fullTx]);
}