getCode method

Future<Uint8List> getCode(
  1. EthereumAddress address, {
  2. BlockNum? atBlock,
})

Implementation

Future<Uint8List> getCode(EthereumAddress address,
    {BlockNum? atBlock}) async {
  final code = await _client.getCode(
    address.hex,
    atBlock?.toBlockParam() ?? 'latest',
  );
  return code;
}