# Agent Kiosk EVM Transaction Simulator & Pre-flight Safety Checker

> Agent Kiosk EVM Transaction Simulator & Pre-flight Safety Checker is a paid API for AI agents from agent-kiosk.vercel.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-19).

Simulates EVM transactions before broadcast, estimating gas, decoding revert reasons, checking ERC-20 allowances, and detecting EIP-1967 proxies across Base, Ethereum, Arbitrum, Optimism, and Polygon.

## Facts

- Endpoint: POST https://agent-kiosk.vercel.app/v1/tx-simulate?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-kiosk-evm-transaction-simulator-pre-flight-safety-checker-90142766
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nyaPgDA9tS8zmkeFTsRnh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent-kiosk-evm-transaction-simulator-pre-flight-safety-checker-90142766 -d '<json body>'
```

Example prompt: Before I send this transaction, simulate it on Base for me — the contract is 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, calldata is 0xa9059cbb000000000000000000000000abc...0000000000000000000000000000000000000000000000000de0b6b3a7640000, and tell me if it will revert, how much gas it'll use, and the estimated fee in USD.

## When to prefer this

Use this endpoint when you need to pre-flight check any EVM transaction before broadcasting it, especially for DeFi interactions where a revert would waste gas. Prefer this over raw RPC calls when you need a combined verdict covering gas estimation, revert detection, proxy detection, and allowance checking in a single call across multiple chains.

## Known failure modes

- Invalid or malformed contract address returns an error
- Unsupported chain enum value rejected
- Missing required 'to' or 'data' fields causes 400 error
- Transaction simulation may fail if RPC node is congested or unavailable
- EIP-1967 proxy detection may return false negative for non-standard proxy patterns
- Payment failure (x402) if USDC balance is insufficient

## How this service works

Pre-flight EVM Transaction Simulator, Gas Estimator, Revert Reason Decoder, ERC-20 Allowance Checker & EIP-1967 Proxy Detector across Base, Ethereum, Arbitrum, Optimism, and Polygon.

## Output

Returns a JSON object with a safety verdict (e.g. SAFE_TO_BROADCAST), simulation results (will_revert boolean, estimated gas, gas price in gwei, estimated fee in USD), target contract metadata (address, is_contract, is_eip1967_proxy), and chain ID. Optionally includes ERC-20 allowance data if token and spender are provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "0x target contract or recipient address"
  },
  "data": {
   "type": "string",
   "description": "0x hex calldata to simulate via eth_call & eth_estimateGas"
  },
  "from": {
   "type": "string",
   "description": "0x sender address"
  },
  "chain": {
   "enum": [
    "base",
    "ethereum",
    "arbitrum",
    "optimism",
    "polygon"
   ],
   "type": "string",
   "description": "Target EVM network (default: base)"
  },
  "token": {
   "type": "string",
   "description": "Optional 0x ERC-20 token address to check allowance"
  },
  "value": {
   "type": "string",
   "description": "Optional native ETH value in wei or 0x hex"
  },
  "spender": {
   "type": "string",
   "description": "Optional 0x spender address to check ERC-20 allowance"
  },
  "tx_hash": {
   "type": "string",
   "description": "Optional 0x transaction hash to fetch receipt"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "verdict": "SAFE_TO_BROADCAST",
  "chain_id": 8453,
  "simulation": {
   "will_revert": false,
   "estimated_gas": 26410,
   "gas_price_gwei": 0.0061,
   "estimated_fee_usd": 0.0004
  },
  "target_contract": {
   "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "is_contract": true,
   "is_eip1967_proxy": true
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-kiosk-evm-transaction-simulator-pre-flight-safety-checker-90142766/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-kiosk.vercel.app](https://www.zero.xyz/host/agent-kiosk.vercel.app/llms.txt)
