personal_sign
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
Name
Type
Description
Data
HexString
| String
Data to sign.
Account
Address
Account to sign from.
Return Type
HexString<Signature>
- The ethereum ecdsa signature.
Example
Last updated
Was this helpful?