const simulateUserOperationChanges: <TChain, TAccount>(
client,
args,
) => Promise<SimulateUserOperationAssetChangesResponse>;Defined in: account-kit/infra/src/actions/simulateUserOperationChanges.ts:30
Simulates user operation changes including asset changes for a specified user operation and returns the resulting state changes.
import { simulateUserOperationChanges, createAlchemyPublicRpcClient } from "@account-kit/infra";
const client = createAlchemyPublicRpcClient(...);
const response = await simulateUserOperationChanges(client, {
uo: ...
});| Type Parameter | Default type |
|---|---|
|
|
|
|
| Parameter | Type | Description |
|---|---|---|
|
| The client instance used to send the simulation request |
|
| The parameters of the user operation including the account and other overrides |
Promise<SimulateUserOperationAssetChangesResponse>
A promise that resolves to the response of the simulation showing the asset changes