# On-Chain Transaction Lookup by Hash

> On-Chain Transaction Lookup by Hash is a paid API for AI agents from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-13).

Looks up a blockchain transaction by its hash and returns full details including sender, recipient, value, status, gas, and contract creation info.

## Facts

- Endpoint: POST https://agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/v1/onchain/tx
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/on-chain-transaction-lookup-by-hash-4ac1b5ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_snH4eQ5qAXSbP1JweoCDl

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 on-chain-transaction-lookup-by-hash-4ac1b5ee -d '<json body>'
```

Example prompt: Can you look up Ethereum transaction 0x4e3a3754410177e6937ef1f84bba68ea139e8d1b6b5f1c4a4e0a3e8e73d0e1a2 on Ethereum and tell me if it succeeded, who sent it, how much ETH was transferred, and how much gas was used?

## When to prefer this

Use this endpoint when you need authoritative, structured on-chain transaction details from a single hash lookup across major EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon, BSC). Prefer this over block explorer UIs when you need machine-readable data for payment verification, settlement confirmation, contract deployment checks, or gas auditing inside an automated agent workflow. It returns a richer normalized response (wei + ETH, success bool, log count, contract created) than raw RPC calls, and supports multi-chain with a single consistent API.

## Known failure modes

- Invalid transaction hash format (must be 0x-prefixed 64 hex chars) — validation error
- Transaction hash not found on the specified chain — returns null fields or error
- Unsupported chain name — defaults to Ethereum or returns error
- Network/RPC unavailability for the requested chain — timeout or service error
- Transaction still pending (not yet mined) — may return incomplete data

## Output

Returns a structured object containing: transaction hash, chain, sender (from), recipient (to), value in ETH and wei, nonce, block number, transaction index, success flag, status string (success/reverted), gas used, gas limit, effective gas price in wei, input data size, number of logs emitted, and any contract address created by the transaction. Also includes routing metadata and cost economics.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "hash"
     ],
     "properties": {
      "hash": {
       "type": "string",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "Transaction hash."
      },
      "chain": {
       "type": "string",
       "default": "ethereum",
       "description": "EVM chain (ethereum, base, arbitrum, optimism, polygon, bsc)."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "machine",
      "route",
      "tx"
     ],
     "properties": {
      "tx": {
       "type": "object",
       "properties": {
        "to": {
         "type": [
          "string",
          "null"
         ]
        },
        "from": {
         "type": [
          "string",
          "null"
         ]
        },
        "hash": {
         "type": [
          "string",
          "null"
         ]
        },
        "chain": {
         "type": [
          "string",
          "null"
         ]
        },
        "nonce": {
         "type": [
          "integer",
          "null"
         ]
        },
        "value": {
         "type": [
          "string",
          "null"
         ]
        },
        "status": {
         "type": [
          "string",
          "null"
         ]
        },
        "gasUsed": {
         "type": [
          "string",
          "null"
         ]
        },
        "success": {
         "type": [
          "boolean",
          "null"
         ]
        },
        "gasLimit": {
         "type": [
          "string",
          "null"
         ]
        },
        "valueWei": {
         "type": [
          "string",
          "null"
         ]
        },
        "inputSize": {
         "type": [
          "integer",
          "null"
         ]
        },
        "logsCount": {
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/on-chain-transaction-lookup-by-hash-4ac1b5ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-commerce-factory-jm.austriaeast.cloudapp.azure.com](https://www.zero.xyz/host/agent-commerce-factory-jm.austriaeast.cloudapp.azure.com/llms.txt)
