Signs a string message with a given private key.
import { signMessage } from "thirdweb/utils";signMessage({ message: "Hello, world!", privateKey: "0x...",});
function signMessage(options: SignMessageOptions): Hex;
The options for signing.
let options: { message: Message; privateKey: Hex };
let returnType: ox__Hex.Hex;
The signature as a hex string
Signs a string message with a given account.
import { signMessage } from "thirdweb/utils";await signMessage({ message: "Hello, world!", account,});
function signMessage(options: { account: Account; message: Message;}): Promise<Hex>;
let options: { account: Account; message: Message };