LocalAccountSigner
A function to initialize an object with an inner parameter and derive a signerType from it.
Import
import { LocalAccountSigner } from "@aa-sdk/core";
Usage
import { LocalAccountSigner } from "@aa-sdk/core";
import { privateKeyToAccount, generatePrivateKey } from "viem";
const signer = new LocalAccountSigner(
privateKeyToAccount(generatePrivateKey())
);
Parameters
inner
T
The inner parameter containing the necessary data