wrapSignatureWith6492
Allows you to generate a signature in ERC-6492 format which is useful to verifying signatures of undeployed smart accounts.
Usage
ts
import { wrapSignatureWith6492 } from "@alchemy/aa-core";
const signature = await wrapSignatureWith6492({
factoryAddress: "0xAccountFactoryAddress",
factoryCallData: "0xfactoryCallData",
signature: "0xSigntatureToWrapAndVerifyLater",
});
Returns
Hash
The original signature wrapped in ERC-6492 format