mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-23 23:57:15 +01:00
1.1 KiB
1.1 KiB
Ethereum: sign message
Asks device to sign a message using the private key derived by given BIP32 path.
const result = await TrezorConnect.ethereumSignMessage(params);
Params
Optional common params EthereumSignMessage type
path— requiredstring | Array<number>minimum length is3. read moremessage- requiredstringmessage to sign in plain texthex- optionalbooleanconvert message from hex
Example
TrezorConnect.ethereumSignMessage({
path: "m/44'/60'/0'",
message: 'example message',
});
Result
{
success: true,
payload: {
address: string,
signature: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}