getCodeAt function

Future<String> getCodeAt(
  1. String address
)

Implementation

Future<String> getCodeAt(
  String address,
) async {
  try {
    final code = await ethereum!.request("eth_getCode", [address, "latest"]);
    return code;
  } catch (e) {
    print(e);
    throw Exception("Could not get code");
  }
}