getBlockStatus method

Future<BlockStatus> getBlockStatus(
  1. String hash
)

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);
}