personalSign method

Future<String> personalSign({
  1. required String message,
  2. required String address,
  3. required String password,
})

Signs method calculates an Ethereum specific signature. address - 20B address message - message to sign password - The password of the account to sign data with

Returns signature.

Implementation

Future<String> personalSign({
  required String message,
  required String address,
  required String password,
}) async {
  final result = await connector.sendCustomRequest(
    method: 'personal_sign',
    params: [address, message, password],
  );

  return result;
}