preview_transaction
Preview any transaction before execution to check decoded calls, gas estimates, and risk levels. Simulates the transaction to detect reverts.
Instructions
Preview an arbitrary transaction (native value + optional calldata) before executing. Returns the decoded call (who/what is authorized), a pre-sign simulation (revert check), gas, and a risk level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Recipient / contract address | |
| data | No | Calldata as 0x-hex; empty for a native value transfer | |
| value | Yes | Native value in wei | |
| chain_id | Yes | Chain ID |