simulate_transaction
Preview transaction outcomes on a forked chain to detect reverts, gas issues, and risks before execution.
Instructions
Simulate a transaction on a forked chain WITHOUT actually executing it. Detects reverts, abnormal gas usage, and other red flags. Use this to preview what will happen before sending a real transaction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Chain ID to simulate on | |
| from | Yes | Sender address | |
| to | Yes | Target contract address | |
| data | Yes | Transaction calldata (hex) | |
| value | No | ETH value to send (in wei) | 0 |