getBlockNumber method
Returns the current block number.
Implementation
Future<int> getBlockNumber() async {
final response = await _call<String>('eth_blockNumber');
final blockNumber = response.toBigIntOrNull;
if (blockNumber == null) throw Exception('Could not parse block number');
return blockNumber.toInt();
}