Docs

simulateHandleOp

Prepares a transaction to call the "simulateHandleOp" function on the contract.

Example

import { simulateHandleOp } from "thirdweb/extensions/erc4337";
const transaction = simulateHandleOp({
contract,
op: ...,
target: ...,
targetCallData: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.