getBlockStatus method
Returns the block status.
Implementation
Future<BlockStatus> getBlockStatus(String hash) async {
var response = await http.get(Uri.parse("$url/api/block/$hash/status"));
dynamic json = jsonDecode(response.body);
return BlockStatus.fromJson(json);
}