# BaseLens Transaction Summary

> BaseLens Transaction Summary is a paid API for AI agents from baselens-api.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-31).

Fetches a decoded summary of a Base blockchain transaction by hash, including status, gas fees, ERC-20 transfers, block number, and timestamp

## Facts

- Endpoint: GET https://baselens-api.vercel.app/v1/tx?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baselens-transaction-summary-95cea974
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vKPGiWOXC6YxhgyUo-Kj-

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 baselens-transaction-summary-95cea974
```

Example prompt: Can you look up Base transaction 0x4bF3...e4aa and tell me whether it succeeded, how much gas it used in ETH, and which ERC-20 tokens were transferred?

## When to prefer this

Use this endpoint when you need a fast, human-readable summary of a specific Base chain transaction — including decoded ERC-20 transfers and gas costs — without needing a full blockchain node or a free-tier API key. Ideal for AI agents that need to verify payments, audit token movements, or explain transactions to users, especially when integrated with x402 micropayment flows on Base.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash from a non-Base chain (e.g. Ethereum mainnet) may not resolve
- Very recent transactions may not yet be indexed
- Network or RPC downtime causes lookup failure
- Payment (x402) fails if wallet has insufficient USDC

## How this service works

Base address, ERC-20 balance, token price, recent transfers, Basename/ENS resolve, contract verification, tx summaries and gas over x402 and MCP. $0.001–$0.004 USDC per call, no API key.

## Output

A JSON object containing the transaction status (success/failure), block number, ISO timestamp, fee paid in ETH, and an array of ERC-20 transfers each with recipient address, token symbol, and amount transferred.

## 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": "0x-prefixed transaction hash on Base"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "feeEth": "0.0000012",
  "status": "success",
  "timestamp": "2026-10-30T04:33:00.000Z",
  "blockNumber": 37000000,
  "erc20Transfers": [
   {
    "to": "0x4bF3…e4aa",
    "amount": "1",
    "symbol": "USDC"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baselens-transaction-summary-95cea974/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baselens-api.vercel.app](https://www.zero.xyz/host/baselens-api.vercel.app/llms.txt)
