Using SDK
Required SDK version: ^v4.59.1
Using the @account-kit/infra Library for UserOperation Management
The @account-kit/infra library enables direct interaction with Alchemy’s ERC-4337 bundler for advanced UserOperation management. The alchemyFeeEstimator function leverages underlying APIs, including rundler_maxPriorityFeePerGas and eth_estimateUserOperation, to estimate gas fees for UserOperations. Below are examples demonstrating how to estimate and send a UserOperation and how to retrieve a UserOperation by its hash using low-level Bundler APIs.
Make sure that you environment is set with your correct ALCHEMY_API_KEY and
PRIVATE_KEY. These examples assume familiarity with ERC-4337 and proper
configuration of the EntryPoint contract (entryPoint07Address).