signTypedData

Signs a typed data object with a given private key according to EIP712.

Example

import { signTypedData } from "thirdweb/utils";
signTypedData({
privateKey: "0x...",
...typedData,
});

Parameters

Returns

The signature as a hex string