Message signing is a crucial feature for authentication, proof of ownership, and creating verifiable statements. This guide covers how to sign messages using the Phantom Server SDK.
The SDK provides a simple interface for signing messages:
Copy
Ask AI
const signature = await sdk.signMessage({ walletId, // The wallet to sign with message, // The message to sign (string) networkId // The network context});
The signature returned is a base64-encoded string that can be verified using the wallet’s public key.
The Server SDK is a beta version, and Phantom will not be liable for any losses or damages suffered by you or your end users.
Any suggestions, enhancement requests, recommendations, or other feedback provided by you regarding the Server SDK will be the exclusive property of Phantom. By using this beta version and providing feedback, you agree to assign any rights in that feedback to Phantom.
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.