Package: react-wallet-kit

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.
The message is automatically prefixed with "\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,
unless explicitly overridden.

Parameters

params
object
required

Response

A successful response returns the following fields:
returns
v1SignRawPayloadResult
required
A promise resolving to a v1SignRawPayloadResult containing the signature and metadata.