Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Signs a message using the SVM wallet identified by the suppliedwalletMetadata. The SDK is stateless — every call requires walletMetadata. If the wallet was created with backUpToDynamic: true, supply the password so the SDK can recover shares from backup when externalServerKeyShares is omitted.
Parameters
Required Parameters
message(string | Uint8Array) - The message to signwalletMetadata(WalletMetadata) - Non-sensitive wallet metadata persisted fromcreateWalletAccount()/importPrivateKey().
Optional Parameters
password(string) - Required if the wallet was created withbackUpToDynamic: true.externalServerKeyShares(ServerKeyShare[]) - Caller-supplied plaintext shares. If omitted, the SDK recovers from backup usingpassword.
Returns
Promise<string>- The serialized signature (base58)
Example
Related
WalletMetadata- The metadata object passed to every operationsignTransaction()- Sign a transaction- Storage Best Practices - Where to cache metadata vs. vault shares