getBlockByNumber method

Future<Json> getBlockByNumber(
  1. int blockNumber
)

Implementation

Future<Json> getBlockByNumber(int blockNumber) async {
  final response = await _call<Json>(
    'eth_getBlockByNumber',
    args: [blockNumber.toHexWithPrefix, false],
  );

  return response;
}