blockNumber method Null safety
Returns the number of most recent block
Example
var block = eth.blockNumber();
Implementation
Future<EtherScanRpcResponseModel> blockNumber() async {
const module = 'proxy';
const action = 'eth_blockNumber';
Map<String, dynamic>? query = {
'module': module,
'action': action,
'apiKey': apiKey,
};
return (await get(query)).fold(
(l) => EtherScanRpcResponseModel.empty(),
(r) => EtherScanRpcResponseModel.fromJson(r),
);
}