@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) • 907 B
TypeScript
import type { Chain, Client, Transport } from "viem";
import { type GetEntryPointFromAccount, type SmartContractAccount } from "../../account/smartContractAccount.js";
import type { UserOperationEstimateGasResponse } from "../../types.js";
import type { SendUserOperationParameters, UserOperationContext } from "./types.js";
export declare function estimateUserOperationGas<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined, TContext extends UserOperationContext | undefined = UserOperationContext | undefined, TEntryPointVersion extends GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>>(client: Client<TTransport, TChain, TAccount>, args: SendUserOperationParameters<TAccount, TContext>): Promise<UserOperationEstimateGasResponse<TEntryPointVersion>>;