# Riley Craig x402 Agent Store — On-Chain Transaction Lookup

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

Fetches decoded details of a blockchain transaction by hash across Base, Ethereum, and other EVM chains, returning status, confirmations, value, fee, and method info.

## Facts

- Endpoint: GET https://store.agentexchange.work/chain/tx
- Price: $0.001/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-on-chain-transaction-lookup-c9913794
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4Ii1MpWPYhkWfLaYtugoL

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-on-chain-transaction-lookup-c9913794
```

Example prompt: Can you look up the transaction 0x4a2f8c1e9b7d3f05c6a8e2d1b4f7a9c3e5d2f1b0a8c4e6d9f2a5b8c1d4e7f0a3 on Base and tell me whether it succeeded, how many confirmations it has, and what value was transferred?

## When to prefer this

Use this endpoint when an AI agent needs to verify, decode, or retrieve details of a specific on-chain transaction across EVM-compatible chains (Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis) without needing an API key — pay-per-call via x402 USDC micropayment makes it ideal for lightweight, on-demand transaction lookups in autonomous agent workflows.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on the specified chain
- Unsupported chain identifier causes a 400 error
- Transaction still pending with zero confirmations
- Network or RPC node timeout causing delayed response

## 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

A JSON object containing the transaction hash, from/to addresses, the chain it occurred on, the decoded method name (e.g. 'transfer'), status ('success' or 'failed'), the block number, number of confirmations, ETH value transferred, and ETH fee paid.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
   "chain": "base"
  }
 }
}
```

## 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"
      }
     }
    }
   }
  }
 }
}
```

## More

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