# 1gateway Transaction Receipt Lookup

> 1gateway Transaction Receipt Lookup is a paid API for AI agents from 1gateway.dev, paid per call via x402, $0.0045/call, status unknown (last checked 2026-11-13).

Fetches the on-chain receipt for a given transaction hash, returning status, block info, confirmations, gas fees, and decoded ERC-20 transfers

## Facts

- Endpoint: GET https://1gateway.dev/v1/onchain/tx/receipt?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/1gateway-transaction-receipt-lookup-5ef1500a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9OIEVRQQflSXRgYmQcpET

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 1gateway-transaction-receipt-lookup-5ef1500a
```

Example prompt: Can you check whether this transaction went through on Base and tell me who paid whom, how much, and whether any tokens were transferred? The hash is 0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b

## When to prefer this

Use this endpoint when an agent needs to confirm whether a specific on-chain transaction succeeded or failed and wants a fully decoded, human-readable receipt including ERC-20 token transfers — especially across Base, Ethereum, Arbitrum, or Monad. Prefer this over raw RPC calls when you need decoded token transfer data with symbols and amounts without writing ABI decoding logic. The 404-not-charged policy makes it safe to poll for unconfirmed hashes.

## Known failure modes

- 404 returned when hash is unknown or transaction not yet mined — not charged
- Invalid hash format (not 0x + 64 hex) will be rejected by schema validation
- Unsupported chain name returns an error
- RPC node may be temporarily unavailable causing latency or failure
- Very recent transactions may not yet have confirmations
- Transactions with more than 25 ERC-20 transfer logs will have transfers truncated

## How this service works

Use when an agent must confirm a transaction or payment landed: did it succeed, who paid whom, how much of which token. Input: hash; chain (base default, ethereum, arbitrum, monad). Output: JSON status (success/reverted), block+time, confirmations, from, to, native value, fee, decoded ERC-20 transfers with symbol and amount (first 25). Unknown or unmined hash: 404, not charged. Example: ?hash=0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b

## Output

A JSON object containing: transaction status (success or reverted), block number and timestamp, number of confirmations, sender and recipient addresses, native token value (in ETH/wei), decoded gas fee (total, gas used, effective gas price, L1 fee for L2 chains), and up to 25 decoded ERC-20 transfers each with token symbol and human-readable amount. Returns 404 (not charged) for unknown or not-yet-mined hashes.

## 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",
       "pattern": "^0x[0-9a-fA-F]{64}$",
       "description": "Transaction hash on the chosen chain (0x + 64 hex). Unknown or not yet mined → 404 (not charged)"
      },
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "monad"
       ],
       "type": "string",
       "description": "EVM chain (default base)"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "chain",
      "chainId",
      "hash",
      "status",
      "block",
      "confirmations",
      "from",
      "to",
      "contractCreated",
      "value"
     ],
     "properties": {
      "to": {
       "type": [
        "string",
        "null"
       ]
      },
      "from": {
       "type": "string"
      },
      "hash": {
       "type": "string"
      },
      "block": {
       "type": "object",
       "properties": {
        "number": {
         "type": "integer"
        },
        "timestamp": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "chain": {
       "type": "string"
      },
      "value": {
       "type": "object",
       "properties": {
        "eth": {
         "type": "number"
        },
        "wei": {
         "type": "string"
        },
        "amount": {
         "type": "number"
        },
        "symbol": {
         "type": "string"
        }
       },
       "additionalProperties": true
      },
      "status": {
       "type": "string"
      },
      "chainId": {
       "type": "integer"
      },
      "confirmations": {
       "type": "integer"
      },
      "contractCreated": {
       "type": [
        "string",
        "null"
       ]
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-transaction-receipt-lookup-5ef1500a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 1gateway.dev](https://www.zero.xyz/host/1gateway.dev/llms.txt)
