getCodeAt method

Future<String> getCodeAt(
  1. String currentAddress
)

Implementation

Future<String> getCodeAt(
  String currentAddress,
) async {
  try {
    var sig =
        await ethereum!.request("eth_getCode", [currentAddress, "latest"]);
    return sig;
  } catch (e) {
    print(e);
    return "0x";
  }
}