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

18 lines 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.estimateUserOperationGas = void 0; const stateOverride_js_1 = require("../../utils/stateOverride.js"); const estimateUserOperationGas = async (client, args) => { return client.request({ method: "eth_estimateUserOperationGas", params: args.stateOverride != null ? [ args.request, args.entryPoint, (0, stateOverride_js_1.serializeStateOverride)(args.stateOverride), ] : [args.request, args.entryPoint], }); }; exports.estimateUserOperationGas = estimateUserOperationGas; //# sourceMappingURL=estimateUserOperationGas.js.map