Skip to main content

Function Signature

Description

Signs a personal message using the personal_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 a PortalException on failure: