# basefeed ERC-20 Transaction Preflight Check

> basefeed ERC-20 Transaction Preflight Check is a paid API for AI agents from api.basefeed.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Validates preflight conditions for ERC-20 token transactions on Base, checking token metadata and wallet readiness before execution

## Facts

- Endpoint: GET https://api.basefeed.io/v1/pack/exec-preflight
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/basefeed-erc-20-transaction-preflight-check-5adf10ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IMQIcVL7Ai2zMGtUbQSx3

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 basefeed-erc-20-transaction-preflight-check-5adf10ed
```

Example prompt: Before I execute a transfer of USDC on Base mainnet from wallet 0xAbC...123, can you run a preflight check to make sure everything looks good?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call preflight check before submitting an ERC-20 token transaction on Base chain, especially in automated DeFi agent workflows where you want to guard against failed transactions. Prefer this over querying token metadata or gas endpoints separately when you need a bundled readiness check. Ideal for agents that need to validate wallet + token state before execution without managing API keys or subscriptions.

## Known failure modes

- Missing required 'token' query parameter returns validation error
- Invalid or unrecognized ERC-20 token address may return ok: false or an error
- Unsupported chain value (not 'base' or 'base-sepolia') returns schema validation error
- Payment not included or insufficient USDC results in 402 Payment Required before response
- Network issues reaching Base RPC may cause timeouts or 5xx errors

## How this service works

Pack: pre-trade gas, token, balances

## Output

Returns a JSON object with an 'ok' boolean indicating whether the preflight conditions are satisfied and the pack name ('exec-preflight'), signaling whether a transaction or token operation can proceed on the specified Base chain.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "base-sepolia"
       ],
       "type": "string",
       "default": "base"
      },
      "token": {
       "type": "string"
      },
      "wallet": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "pack": "exec-preflight"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/basefeed-erc-20-transaction-preflight-check-5adf10ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.basefeed.io](https://www.zero.xyz/host/api.basefeed.io/llms.txt)
