Files
707b0f3c2b AA-472: Support native tracer (#230)
* support native tracer

--tracerRpcUrl - provide a geth node that supports the native
"bundlerCollectorTracer" native tracer
main provider must support "prestateTracer"

---------

Co-authored-by: Alex Forshtat <[email protected]>
2024-10-23 15:40:48 +02:00
..
2024-10-23 15:40:48 +02:00
2024-02-22 12:42:57 +02:00

SDK to check if the validation code of a UserOperation violates any validation rules

Usage

In order to check the UserOperation you have created, use the code below.

This is especially useful if you are developing a custom Account or Paymaster contract, overriding the validateUserOp, validatePaymasterUserOp, or expect your contracts' code to be called from these methods within the ERC-4337 transaction context.

import { UserOperation } from '@account-abstraction/utils'
import { checkRulesViolations } from '@account-abstraction/validation-manager'

const userOperation: UserOperation = createUserOp()
await checkRulesViolations(provider, userOperation, entryPoint)