# Transaction Preflight Guard

> Transaction Preflight Guard 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-22).

Simulates an EVM transaction on Base and checks ERC-20 allowances, returning a safety verdict (ok/caution/blocked) before the user signs

## Facts

- Endpoint: GET https://api.firstmention.uk/s/txpreflight/guard?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/transaction-preflight-guard-56344b77
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LcjgTW4rRAxwEMBz20c4i

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 transaction-preflight-guard-56344b77
```

Example prompt: Before I sign this transaction, can you preflight-check it on Base — the call is to contract 0xAbC...123 with calldata 0xdeadbeef, sent from my wallet 0x111...222 — and also check whether the spender 0xBBB...333 has an excessive allowance on token 0xTTT...444 that I own?

## When to prefer this

Use this endpoint when an AI agent or wallet UI needs to protect a user before they sign an EVM transaction on Base — especially when ERC-20 approvals are involved and you want to catch unlimited allowances or reverting calls. Prefer this over generic blockchain RPCs because it combines simulation, allowance inspection, and a human-readable safety verdict in a single pay-per-call API with no subscription required.

## Known failure modes

- Invalid or malformed address fields return validation errors
- Calldata that cannot be decoded may produce incomplete analysis
- Network timeouts if Base RPC is congested
- Missing required 'to' or 'from' fields cause request rejection
- Allowance check skipped if token/owner/spender not provided

## 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: 'ok' boolean, 'chain' (always 'base'), 'verdict' (ok/caution/blocked), 'safeToSign' boolean, human-readable 'summary', list of 'blockers' (hard stops), list of 'warnings' (soft concerns), 'allowance' details including human-readable amount and unlimited flag, and 'preflight' data including estimated gasUsed and wouldRevert boolean.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string"
      },
      "data": {
       "type": "string"
      },
      "from": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "verdict": {
       "type": "string"
      },
      "warnings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "verdict": "caution",
  "warnings": [
   "allowance too low"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/transaction-preflight-guard-56344b77/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)
