UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

6 lines (5 loc) 744 B
import type { Chain, Client, Transport } from "viem"; import type { GetEntryPointFromAccount, SmartContractAccount } from "../../account/smartContractAccount"; import type { UserOperationRequest } from "../../types"; import type { SignUserOperationParameters } from "./types"; export declare function signUserOperation<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined, TEntryPointVersion extends GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>>(client: Client<TTransport, TChain, TAccount>, args: SignUserOperationParameters<TAccount>): Promise<UserOperationRequest<TEntryPointVersion>>;