# AgentFeed Transaction Precheck

> AgentFeed Transaction Precheck is a paid API for AI agents from x402.ochinimus.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-15).

Simulates a Solana or Base transaction before signing, returning balance changes, program/contract interactions, approvals, new accounts, token risk, and warnings.

## Facts

- Endpoint: GET https://x402.ochinimus.app/api/tx-precheck?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentfeed-transaction-precheck-085153ea
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JwlbXMP0IlRB0eC4IzYu0

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 agentfeed-transaction-precheck-085153ea
```

Example prompt: Before I sign this Solana transaction, simulate it and tell me what balance changes, program interactions, and any token warnings it would cause — here's the base64 tx: AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAQABAgAA

## When to prefer this

Use this endpoint when you need to dry-run a Solana or Base transaction before the user signs it — especially to detect drains, malicious approvals, unexpected program interactions, or token risks. Prefer this over on-chain simulation tools when you need a structured, agent-readable response with explicit risk warnings and balance change breakdowns, and when you want the simulation to be free on failure (503 = no charge).

## Known failure modes

- 503 if the transaction cannot be simulated (not charged)
- Invalid base64 Solana transaction encoding
- Malformed 0x calldata for Base transactions
- Missing required 'chain' query parameter
- Transaction too large (exceeds 1232 bytes for Solana or 20000 hex chars for Base)
- Unrecognized chain value (must be 'solana' or 'base')

## How this service works

Transaction precheck: simulated balance changes, programs or contracts, approvals, new accounts, token-risk reads and warnings. Use when you need to answer: What would this Solana or Base transaction do to the wallet that signs it, before it is signed? 503 if it cannot simulate: not charged.

## Output

Returns a structured object including: the chain, a simulation summary, token-by-token balance changes, a list of programs or contracts interacted with, any new or closed accounts, approvals granted, delegations, token risk warnings, and a timestamp. Returns 503 (not charged) if simulation fails.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "to": {
       "type": "string",
       "maxLength": 42,
       "description": "chain=base: the 0x address the transaction calls"
      },
      "tx": {
       "type": "string",
       "maxLength": 1644,
       "description": "chain=solana: the transaction as base64, legacy or version 0, signed or unsigned, at most 1232 bytes"
      },
      "data": {
       "type": "string",
       "maxLength": 20002,
       "description": "chain=base: calldata as 0x hex, at most 20000 hex characters (default 0x)"
      },
      "from": {
       "type": "string",
       "maxLength": 42,
       "description": "chain=base: the sender, a 0x address (default: a placeholder sender that holds nothing)"
      },
      "chain": {
       "enum": [
        "solana",
        "base"
       ],
       "type": "string",
       "description": "the chain of the transaction: solana or base"
      },
      "value": {
       "type": "string",
       "maxLength": 80,
       "description": "chain=base: wei to send, decimal or 0x hex (default 0)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "as_of": {
         "type": "object"
        },
        "chain": {
         "type": "string"
        },
        "tokens": {
         "type": "array"
        },
        "request": {
         "type": "object"
        },
        "summary": {
         "type": "object"
        },
        "programs": {
         "type": "array"
        },
        "warnings": {
         "type": "array"
        },
        "approvals": {
         "type": "array"
        },
        "simulation": {
         "type": "object"
        },
        "delegations": {
         "type": "array"
        },
        "new_accounts": {
         "type": "array"
        },
        "balance_changes": 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentfeed-transaction-precheck-085153ea/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ochinimus.app](https://www.zero.xyz/host/x402.ochinimus.app/llms.txt)
