Overview
Signs a message using the specified wallet account.- Supports both embedded and connected wallets.
- For connected wallets:
- Delegates signing to the wallet provider’s native signing method.
- Important: For Ethereum wallets (e.g., MetaMask), signatures follow EIP-191.
"\x19Ethereum Signed Message:\n" + message length
before signing. As a result, this signature cannot be used as a raw transaction signature or broadcast on-chain.
- For embedded wallets, uses the Turnkey API to sign the message directly.
- Automatically handles message encoding and hashing based on the wallet account’s address format,
Package: core
Defined in: core.ts:2123
Parameters
Response
A successful response returns the following fields:A promise resolving to a
v1SignRawPayloadResult
containing the signature and metadata.