MiniKit.signMessage() to request a personal signature from the user’s wallet.
Availability
- Works natively in World App
- Can execute outside World App through Wagmi or a custom fallback when configured
Basic Usage
Result
Fallback Behavior
executedWith: "wagmi"means the web signer handled the requestexecutedWith: "fallback"means your custom fallback handled the request
Notes
Verify signatures in a trusted environment before using them for sensitive application logic.Error Codes
| Code | Meaning |
|---|---|
invalid_message | The message payload is invalid |
user_rejected | The user rejected the request |
generic_error | Unexpected failure |