← Back to Agent Kiosk (All 23 Tools)

⚡ evm_tx_simulator — x402 v2 & MCP Tool

Pre-flight EVM Transaction Simulator, Gas Estimator, Revert Reason Decoder, ERC-20 Allowance Checker & EIP-1967 Proxy Detector ($0.005 USDC). Simulates any transaction via eth_call & eth_estimateGas across Base, Ethereum, Arbitrum, Optimism, and Polygon before signing.

Input JSON Schema

{
  "type": "object",
  "properties": {
    "chain": {
      "type": "string",
      "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
      ],
      "description": "Target EVM blockchain (default: 'base')"
    },
    "from": {
      "type": "string",
      "description": "0x sender wallet address"
    },
    "to": {
      "type": "string",
      "description": "0x target smart contract or recipient address"
    },
    "data": {
      "type": "string",
      "description": "0x hex calldata to simulate (default: '0x18160ddd')"
    },
    "value": {
      "type": "string",
      "description": "Optional native ETH value in wei or 0x hex"
    },
    "token": {
      "type": "string",
      "description": "Optional 0x ERC-20 token address to verify allowance"
    },
    "spender": {
      "type": "string",
      "description": "Optional 0x spender contract address to verify ERC-20 allowance"
    },
    "tx_hash": {
      "type": "string",
      "description": "Optional 0x transaction hash to decode receipt"
    }
  }
}