personal_sign
Last updated
Was this helpful?
Last updated
Was this helpful?
Calculates an ethereum signature of the given data from the selected account.
Warning
This method adds the standard "\x19Ethereum Signed Message:\n" + len(message)
prefix when calculating the signature hash.
ecdsa(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))
Parameters
Data
HexString
| String
Data to sign.
Account
Address
Account to sign from.
Return Type
HexString<Signature>
- The ethereum ecdsa signature.
Example