merkleRoot method

Future<Uint8List> merkleRoot({
  1. BlockNum? atBlock,
})

The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.

Implementation

Future<_i2.Uint8List> merkleRoot({_i1.BlockNum? atBlock}) async {
  final function = self.abi.functions[18];
  assert(checkSignature(function, '2eb4a7ab'));
  final params = [];
  final response = await read(function, params, atBlock);
  return (response[0] as _i2.Uint8List);
}