factor_simulate_transaction
Simulate single or multi-step transactions on a forked network with Foundry Anvil, including sequential flows and ETH balance overrides before execution.
Instructions
Simulate one or more transactions on a forked network using Foundry anvil. Supports balanceOverrides to set ETH balances before execution. Use "steps" for multi-step flows (e.g., approve + deploy vault) that need to run sequentially on the same fork.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "factor_simulate_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target contract address (for single transaction mode) | |
| args | No | Function arguments (used with signature) | |
| data | No | Calldata (hex string starting with 0x) | |
| steps | No | Array of transactions to execute sequentially on the same fork. Use for multi-step flows like approve + deploy. Each step runs after the previous one succeeds. | |
| value | No | ETH value in wei (default: 0) | |
| gasLimit | No | Gas limit (default: auto) | |
| password | No | Wallet password if encrypted | |
| signature | No | Function signature (e.g., "transfer(address,uint256)") - alternative to data | |
| balanceOverrides | No | Override ETH balances on the forked network before executing the transactions. |