# OneSource Ethereum Transaction Receipt Lookup

> OneSource Ethereum Transaction Receipt Lookup is a paid API for AI agents from api.onesource.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches the on-chain transaction receipt for a given Ethereum or Sepolia transaction hash, including status, gas used, logs, and block details.

## Facts

- Endpoint: GET https://api.onesource.io/api/chain/receipt/%7Bhash%7D
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-ethereum-transaction-receipt-lookup-e1b3a05e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2jGgzDux385aN1NTkup__

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 onesource-ethereum-transaction-receipt-lookup-e1b3a05e
```

Example prompt: Did transaction 0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f go through on Ethereum mainnet? I need the receipt — status, gas used, block number, and any logs.

## When to prefer this

Use this endpoint when you need to confirm whether a specific Ethereum or Sepolia transaction succeeded, retrieve gas cost data, find the block it was mined in, or extract event logs from a known tx hash. Prefer this over full node RPC calls when no API key management is desired and pay-per-call USDC micropayments are acceptable.

## Known failure modes

- Invalid hash format (not 0x-prefixed 64-hex-char string) returns validation error
- Transaction hash not found on specified network returns 404 or null result
- Network mismatch (hash exists on mainnet but queried on sepolia) returns not found
- Payment failure via x402/MPP results in 402 Payment Required response
- Node temporarily unavailable returns 503

## How this service works

Two data families for AI agents: live Ethereum mainnet, Sepolia testnet, and Robinhood Chain RPC reads, plus Deepstate on-chain market data (order books, trades, candles, and analytics). Pay per call or use batch/session mode: USDC on Base via x402, or pathUSD/USDC.e on Tempo via MPP. No API key required to start; a flat-rate monthly subscription is also available.

## Output

A JSON object containing the transaction receipt: status (0x1 = success, 0x0 = failure), gas_used, block_number, transaction_hash, effective_gas_price, and a logs array of any events emitted during execution.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{64}$"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "network": {
       "enum": [
        "ethereum",
        "sepolia",
        "robinhood"
       ],
       "type": "string",
       "default": "ethereum"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "data",
      "meta"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "result": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "logs": {
           "type": "array",
           "items": {}
          },
          "status": {
           "type": "string"
          },
          "gasUsed": {
           "type": "string"
          },
          "blockNumber": {
           "type": "string"
          },
          "transactionHash": {
           "type": "string"
          },
          "effectiveGasPrice": {
           "type": "string"
          }
         }
        }
       },
       "description": "Endpoint-specific response payload"
      },
      "meta": {
       "type": "object",
       "required": [
        "endpoint",
        "request_id"
       ],
       "properties": {
        "endpoint": {
         "type": "string"
        },
        "cost_usdc": {
         "type": "string"
        },
        "request_id": {
         "type": "string"
        },
        "payment_chain": {
         "type": "string"
        },
        "payment_token": {
         "type": "string"
        }
       }
      },
      "error": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "code": {
         "type": "integer"
        },
        "message": {
         "type": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "result": {
    "logs": [],
    "status": "0x1",
    "gasUsed": "0x5208",
    "blockNumber": "0x133da1e",
    "transactionHash": "0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f",
    "effectiveGasPrice": "0x3b9aca00"
   }
  },
  "meta": {
   "endpoint": "/api/chain/receipt/{hash}",
   "cost_usdc": "0.001",
   "request_id": "00000000abcdef01",
   "payment_chain": "base",
   "payment_token": "USDC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onesource-ethereum-transaction-receipt-lookup-e1b3a05e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.onesource.io](https://www.zero.xyz/host/api.onesource.io/llms.txt)
