EVM Transaction Simulator
simulate_evm_txRead-only, side-effect-free EVM transaction dry-run (eth_call + gas estimation) that decodes revert reasons, detects unlimited ERC-20 approvals, flags EIP-7702 delegation targets, and scores ONNX drainer risk without signing or broadcasting. Use this when you have concrete from/to/data/value calldata to test; use inspect_evm_address_safety to check an address alone, inspect_eip7702_authorization for Pectra authorization_list tuples, or preflight_transaction_guard for a unified ALLOW/WARN/BLOCK guardrail.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainId": "<chainId>",
"from": "<from>",
"to": "<to>"
},
"name": "simulate_evm_tx"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target 20-byte EVM address | |
| data | No | Optional hex calldata (default 0x) | |
| from | Yes | Sender 20-byte EVM address | |
| value | No | Optional wei value as decimal or 0x-hex string (default 0x0) | |
| chainId | Yes | EVM chain ID (1=Ethereum, 8453=Base, 42161=Arbitrum, 10=Optimism, 137=Polygon) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | Whether eth_call simulation succeeded without reverting | |
| verdict | No | Deterministic decision or classification label when applicable | |
| timestamp | No | ISO-8601 evaluation timestamp when provided | |
| gasEstimate | No | Estimated gas usage | |
| revertReason | No | Decoded revert reason if simulation reverted | |
| drainerRiskScore | No | ONNX drainer probability score |