overview
The Message handler enables users to sign messages using Ledger Live. In the Ethereum context, the messages can be EIP-191 or EIP-712 messages.
request handlers:
“message.sign” - Sign Message
Allow the user to sign the provided message. This method is used to get a signature for a given message, which proves that the owner of the account has agreed to the message content.
parameter (in req.params) | required? | note |
---|---|---|
accountId | âś… | A string representing the Ledger Live ID of the account that should be used to sign the message. |
hexMessage | âś… | A Buffer containing the message that should be signed. |
meta | ❌ | An object with additional data associated with the message. |
walletHandler used | note |
---|---|
message.sign |
- Returns: A promise that resolves with a Buffer containing the signed message in hexadecimal format.