# ChainRead Simulate — EVM Call Preflight

> ChainRead Simulate — EVM Call Preflight is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-19).

Simulates an EVM smart contract read/call on a specified chain to estimate gas, check for reverts, and inspect return data before any real transaction is submitted.

## Facts

- Endpoint: POST https://api.firstmention.uk/s/chainread/simulate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-simulate-evm-call-preflight-307b448b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MCJqTvYisBIvcffzGPvIM

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 chainread-simulate-evm-call-preflight-307b448b -d '<json body>'
```

Example prompt: Can you do a read-only preflight simulation of calling the USDC contract at 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base with calldata 0x70a08231000000000000000000000000abcdef1234567890abcdef1234567890abcdef12 — tell me the gas estimate, whether it would revert, and what it'd cost in ETH?

## When to prefer this

Use this endpoint when you need a lightweight, read-only simulation of an EVM contract call — especially before committing to a real transaction — to check gas costs, detect reverts, and inspect return data without signing or broadcasting anything. Prefer it over full node RPC calls when you need a managed, pay-per-use service with no infrastructure setup, or when operating inside an AI agent loop that needs fast preflight checks on Base or other EVM chains.

## Known failure modes

- Invalid or non-existent contract address returns an error or would_revert: true
- Malformed calldata hex string causes a parse error
- Unsupported chain identifier returns an error
- Network RPC unavailability causes timeout
- Payment not included or insufficient USDC causes 402 response

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, bizcal-api, chainread, check-sanctions, chgwatch, company-facts, domain-intel, domainkit, domfacts, due, edgar, funding-rates, fundinglens, pageaudit, solcheck, token-dd, txpreflight, walletprofile, web-extract, webmd, webread, websearch, x402-preflight, x402check, x402index. Each operation describes its service.

## Output

Returns a JSON object with: the target contract address, gas estimate (integer), estimated ETH cost as a decimal string, gas price in gwei, number of return bytes, a boolean would_revert flag indicating if the call would fail, and a note confirming nothing was signed or submitted.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "address": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "results": [
   {
    "i": 0,
    "ok": true,
    "op": "balance",
    "result": {
     "chain": "base",
     "address": "0x4200000000000000000000000000000000000006",
     "balance": "1.23"
    }
   }
  ],
  "ok_count": 3,
  "error_count": 0,
  "per_read_usd": 0.003333
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainread-simulate-evm-call-preflight-307b448b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
