Utilities
A set of utilities for ERC-4337 Account Abstraction to help you with your development.
UserOperation utils
createUserOperationHash
Source code
createPackedUserOperationV6
Source code
createPackedUserOperationV7
Source code
fetchAccountNonce
Source code
calculateUserOperationMaxGasCost
Source code
calculateUserOperationMaxGasCost
getBalance
Returns the balance of an account in the EntryPoint contract.
Source code
simulateUserOperationWithTenderlyAndCreateShareLink
Simulates a UserOperation with Tenderly and returns a shareable link.
getDepositInfo
Returns the full deposit information of an account in the EntryPoint contract.