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

14 lines 519 B
import { serializeStateOverride } from "../../utils/stateOverride.js"; export const estimateUserOperationGas = async (client, args) => { return client.request({ method: "eth_estimateUserOperationGas", params: args.stateOverride != null ? [ args.request, args.entryPoint, serializeStateOverride(args.stateOverride), ] : [args.request, args.entryPoint], }); }; //# sourceMappingURL=estimateUserOperationGas.js.map