signMessage

Signs a string message with a given private key.

Example

import { signMessage } from "thirdweb/utils";
signMessage({
message: "Hello, world!",
privateKey: "0x...",
});

Parameters

Returns

The signature as a hex string