mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-20 22:28:30 +01:00
961 B
961 B
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
flowtype
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
flowtype
{
success: true,
payload: {
address: string,
signature: string,
}
}
Error
{
success: false,
payload: {
error: string // error message
}
}