sign method

Future<String> sign({
  1. required String message,
  2. required String address,
})

Signs method calculates an Ethereum specific signature. address - 20B address message - message to sign

Returns signature.

Implementation

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

  return result;
}