AA51 prefund below actualGasCost
AA51 prefund below actualGasCost is an ERC-4337 EntryPoint error that means the user operation's actual gas cost was higher than the prefund paid by the smart account or paymaster.
The actual gas cost of the user operation ended up being higher than the prefund paid by the smart account or the paymaster.
Possible solutions
- If you encounter this error, try increasing the
verificationGasLimitset for the user operation. - If you are using the
eth_estimateUserOperationGasorpm_sponsorUserOperationmethod from bundler provider like Pimlico to set user operation gas limits and the EntryPoint throws this error during submission, reach out to them. - If all else fails, investigate why the actual gas cost ended up being higher than the prefund paid using tools like Tenderly.