signTypedData
The signTypedData
method is used to sign typed data with the Alchemy Signer.
Usage
example.ts
import { signer } from "./signer";
const signature = await signer.signTypedData(typedDataParams);
Returns
Promise<Hex>
-- on success returns the signature of the message.
Parameters
params: TypedDataDefinition
-- the typed data definition of the message you want to sign