# Riley Craig x402 Agent Store — Chain Transaction Lookup

> Riley Craig x402 Agent Store — Chain Transaction Lookup is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-15).

Fetches on-chain transaction details (status, block, confirmations, value, fee) for a given tx hash across EVM-compatible chains, paid per call in USDC via x402.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/chain/tx
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-chain-transaction-lookup-86c21851
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6-EA6gDhqRUo6Q7gToTqN

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 riley-craig-x402-agent-store-chain-transaction-lookup-86c21851
```

Example prompt: Can you look up the transaction 0x4a3bc9f12e8d7a6b5c1e0f3d2a9b8c7e6d5f4a3b2c1e0f9d8a7b6c5d4e3f2a1b on Base and tell me its status, how many confirmations it has, and what the fee was?

## When to prefer this

Use this endpoint when an AI agent needs to verify or inspect a specific on-chain transaction by hash — especially on Base, Ethereum, Optimism, Arbitrum, Polygon, or Gnosis — and wants a no-signup, pay-per-call experience via x402 micropayments rather than managing API keys for a traditional block explorer service.

## Known failure modes

- Invalid or malformed transaction hash returns an error response
- Transaction hash not found on the specified chain
- Unsupported chain identifier results in an error
- Payment failure (402) if USDC balance is insufficient for x402 micropayment
- Network timeout if the RPC node is slow or unavailable

## How this service works

Look up any transaction by hash: confirmation status (success/failed/pending), block number, confirmations, value, from/to, fee paid, gas used, and the decoded method. The read every settlement, trading, and payment agent polls after sending a tx to confirm it landed. Across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. Free upstream (Blockscout); one paid call instead of running your own RPC.

## Output

Returns a JSON object with the transaction hash, from/to addresses, block number, chain name, decoded method name, status (success/fail/pending), value transferred in ETH, fee paid in ETH, and number of confirmations.

## 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": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "description": "Transaction hash (0x...)"
      },
      "chain": {
       "type": "string",
       "description": "base|ethereum|optimism|arbitrum|polygon|gnosis (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "block": {
       "type": "number"
      },
      "status": {
       "type": "string"
      },
      "confirmations": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x...",
  "from": "0x...",
  "hash": "0x...",
  "block": 18234567,
  "chain": "base",
  "method": "transfer",
  "status": "success",
  "fee_eth": 0.00012,
  "value_eth": 0.05,
  "confirmations": 42
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-chain-transaction-lookup-86c21851/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
