# OneSource Ethereum Transaction Lookup by Hash

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

Retrieves full on-chain transaction details for a given Ethereum transaction hash on mainnet or Sepolia testnet

## Facts

- Endpoint: GET https://api.onesource.io/api/chain/tx/%7Bhash%7D
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onesource-ethereum-transaction-lookup-by-hash-13777276
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WjKwTIlOvTUej_yHTHrm5

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-lookup-by-hash-13777276
```

Example prompt: Can you look up the Ethereum transaction 0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f on mainnet and tell me who sent it, who received it, and how much ETH was transferred?

## When to prefer this

Use this endpoint when you need structured transaction data (from, to, value, gas, nonce, block number) for a specific Ethereum or Sepolia transaction hash, without requiring an API key — especially in agent workflows using x402 micropayments. Prefer this over general-purpose RPC providers when you need pay-per-call billing in USDC with no account setup.

## Known failure modes

- Invalid or malformed transaction hash (not matching ^0x[a-fA-F0-9]{64}$) returns an error
- Transaction hash not found on the specified network returns null or 404
- Network parameter set to an unsupported value returns validation error
- Payment not attached or insufficient USDC payment returns 402
- Node temporarily unavailable returns 5xx

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

Returns a JSON object with the transaction's hash, from address, to address, ETH value (in hex wei), gas limit (hex), nonce (hex), and block number (hex) for the specified transaction on Ethereum mainnet or Sepolia testnet.

## 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": {
        "receipt": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "logs": {
           "type": "array",
           "items": {}
          },
          "status": {
           "type": "string"
          },
          "gasUsed": {
           "type": "string"
          },
          "blockNumber": {
           "type": "string"
          },
          "transactionHash": {
           "type": "string"
          }
         }
        },
        "transaction": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "to": {
           "type": "string"
          },
          "gas": {
           "type": "string"
          },
          "from": {
           "type": "string"
          },
          "hash": {
           "type": "string"
          },
          "nonce": {
           "type": "string"
          },
          "value": {
           "type": "string"
          },
          "blockNumber": {
           "type": "string"
          }
         }
        }
       },
       "description": "Endpoint-specific response payload"
      },
      "meta": {
       "type": "object",
       "required": [
        "endpoint",
        "request_id"
       ],
       "properties": {
        "endpoint": 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "receipt": {
    "logs": [],
    "status": "0x1",
    "gasUsed": "0x5208",
    "blockNumber": "0x133da1e",
    "transactionHash": "0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f"
   },
   "transaction": {
    "to": "0xdac17f958d2ee523a2206206994597c13d831ec7",
    "gas": "0x5208",
    "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
    "hash": "0xad7e04119ecd85857728205f5b12e95f0bab8e99f9c2f60be5dc79cfc6a8df1f",
    "nonce": "0x4d2",
    "value": "0x0",
    "blockNumber": "0x133da1e"
   }
  },
  "meta": {
   "endpoint": "/api/chain/tx/{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-lookup-by-hash-13777276/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)
