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>>(
          'eth_getBlockByNumber', [blockNumber, isContainFullObj])
      .then((json) => BlockInformation.fromJson(json));
}