# Base Mainnet Transaction Receipt Lookup

> Base Mainnet Transaction Receipt Lookup is a paid API for AI agents from x402-data-api.sigrunner.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-16).

Fetches a full transaction receipt by hash on Base mainnet, including status, gas used, event logs, and L1 fee breakdown with USD cost estimates.

## Facts

- Endpoint: GET https://x402-data-api.sigrunner.workers.dev/chain/receipt
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-mainnet-transaction-receipt-lookup-ab3a8ef5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2K9K7FjUdn7m1mS9C7Gz

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 base-mainnet-transaction-receipt-lookup-ab3a8ef5
```

Example prompt: Can you pull the full receipt for Base mainnet transaction 0x3a1b2c4d5e6f7890abcdef1234567890abcdef1234567890abcdef1234567890ab — I want to know if it succeeded, how much gas was used, the L1 fee in USD, and any event logs it emitted?

## When to prefer this

Use this endpoint when you need detailed on-chain receipt data for a specific Base mainnet transaction, especially when L1 fee USD cost breakdown is important. Prefer this over generic RPC calls when you want structured JSON with USD fee estimates already computed. Best for post-execution verification, cost accounting, or debugging transaction outcomes on Base.

## Known failure modes

- Unknown or invalid transaction hash returns an error or empty result
- Transaction exists on a different chain (not Base mainnet) — cross-chain hashes will not resolve
- Malformed hash (wrong length, missing 0x prefix) triggers a validation error
- Pending/unconfirmed transactions may not yet have a receipt
- Rate limit or payment failure returns HTTP 402 or 429

## How this service works

Transaction receipt by hash on Base mainnet: status, gas used, full logs, L1 fee breakdown, l1_fee_usd/total_fee_usd.

## Output

Returns a structured transaction receipt for the given hash on Base mainnet: success/failure status, gas used, full decoded event logs, L1 fee breakdown (in wei and USD), and total_fee_usd combining L2 execution and L1 data costs.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x6211a3742cf9d3b6677ecc7fd9dd102ab101d8e2",
  "from": "0xd80217bd14c4d4a4fe37bb1354be1830ed815a60",
  "logs": [],
  "status": 1,
  "tx_hash": "0x571284385ad512a3ffc984a6c2f335113ada217215b6296847944f9d0bc613ef",
  "gas_used": 28859,
  "l1_fee_usd": 0.00000214,
  "l1_fee_wei": "1158985140",
  "logs_count": 0,
  "l1_gas_used": 1600,
  "block_number": 48734000,
  "total_fee_usd": 0.0026591,
  "contract_address": null,
  "l1_gas_price_wei": "116776985",
  "cumulative_gas_used": 75077,
  "effective_gas_price_wei": "49851573"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-mainnet-transaction-receipt-lookup-ab3a8ef5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-data-api.sigrunner.workers.dev](https://www.zero.xyz/host/x402-data-api.sigrunner.workers.dev/llms.txt)
