Function Signature
Description
Signs a personal message using thepersonal_sign RPC method, which prepends the standard Ethereum message prefix ("\x19Ethereum Signed Message:\n" + len(message)) before signing.
For signing EIP-712 typed structured data, see signTypedData instead.
Parameters
Returns
String — The signature as a hex string.
Example
Errors
Throws aPortalException on failure:
Related
- signTypedData — sign EIP-712 typed structured data
- rawSign
- request
- Sign a transaction guide