getBlockInformation method

Future<BlockInformation> getBlockInformation({
  1. String blockNumber = 'latest',
  2. bool isContainFullObj = true,
})

Implementation

Future<BlockInformation> getBlockInformation({
  String blockNumber = 'latest',
  bool isContainFullObj = true,
}) {
  return _makeRPCCall<Map<String, dynamic>>('xcb_getBlockByNumber', [
    blockNumber,
    isContainFullObj,
  ]).then((json) => BlockInformation.fromJson(json));
}