Asks the currently logged-in WalletTwo user to sign an arbitrary text message using their wallet's private key. The resulting cryptographic signature is returned to the host page via postMessage and optionally via redirect.
Use this when you need to prove that a specific WalletTwo user controls a given wallet address, or when you need a signed payload for your own on-chain or off-chain logic.
Green checkmark + "Message Signed!" + countdown if redirect_uri present
No message param
Signing state mounts but no action is triggered
The iframe always shows a preview of the message (first 100 chars + ... if longer).
Security checklist
Always verify event.origin before trusting the event.
Always verify the signature server-side against the original message and the expected wallet address.
Do not rely solely on the wallet field returned in the event — confirm it matches by recovering the signer from the signature itself.
Be specific about what can be signed: restrict the message parameter to the exact challenge string your backend issues. Avoid accepting arbitrary user-controlled messages.