getBlock method

Future<Block> getBlock(
  1. String blockNumOrId
)

Get AMAX Block Info

Implementation

Future<Block> getBlock(String blockNumOrId) async {
  return this._post(
      '/chain/get_block', {'block_num_or_id': blockNumOrId}).then((block) {
    return Block.fromJson(block);
  });
}