Skip to content

Documentation / expo / useSolanaSignMessage

Function: useSolanaSignMessage()

useSolanaSignMessage(): UseSolanaSignMessageInterface

Use this hook to sign a message using the embedded wallet, using the default UI powered by PrivyElements.

Returns

UseSolanaSignMessageInterface

signMessage - prompts the user to sign a message with their embedded wallet, returning a Promise of the resulting signature.