Use the
signMessage
method exported from the useSignMessage
hook to sign a message with a Solana wallet.Usage
Parameters
Message to be signed as a Uint8Array.
The Solana wallet to use for signing the message.
Additional options for signing the message.
Response
The signature produced by the wallet.
The original message that was signed.