Quick Access
Coin Methods
Bitcoin
Miscellaneous
Methods
Bitcoin
verifyMessage

Verify message

Asks device to verify a message using the signer address and signature.

const result = await TrezorConnect.verifyMessage(params);

Params

Including CommonParams

VerifyMessage

address

String

Required

signer address,

signature

String

Required

signature in base64 format,

message

String

Required

signed message,

coin

String

Required

Determines network definition specified in coins.json file. Coin shortcut, name or label can be used.

hex

Boolean

Optional

convert message from hex

Example

TrezorConnect.verifyMessage({
    address: '3BD8TL6iShVzizQzvo789SuynEKGpLTms9',
    message: 'example message',
    signature:
        'JO7vL3tOB1qQyfSeIVLvdEw9G1tCvL+lNj78XDAVM4t6UptADs3kXDTO2+2ZeEOLFL4/+wm+BBdSpo3kb3Cnsas=',
    coin: 'btc',
});

Result

Success type

{
    success: true,
    payload: {
        message: "Message verified"
    }
}

Error

{
    success: false,
    payload: {
        error: string // error message
    }
}