When using Privy’s server-side SDKs to sign messages, you can use the authorization context to
automatically sign requests. Learn more about signing on the
server.
Use the
signMessage method exported from the useSignMessage hook to sign a message with a Solana wallet.Usage
Parameters
Uint8Array
required
Message to be signed as a Uint8Array.
string
The Solana wallet to use for signing the message.
{uiOptions?: SignMessageModalUIOptions}
Additional options for signing the message.
Response
Uint8Array
The signature produced by the wallet.
Uint8Array
The original message that was signed.

