# 1gateway Base Transaction Lookup

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

Fetches confirmed status, block details, fee breakdown, and decoded ERC-20 transfers for a Base mainnet transaction by hash

## Facts

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

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-base-transaction-lookup-98dc63ad
```

Example prompt: Can you check if my Base transaction 0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b succeeded, and tell me who sent what to whom including any token transfers and the total fee paid?

## When to prefer this

Use this endpoint when you need a single-call, normalized view of a Base mainnet transaction including decoded ERC-20 token transfers and L1+L2 fee breakdown, without setting up your own RPC node or parsing raw logs. Prefer it over raw Ethereum RPC calls when you need human-readable token amounts, symbols, and fee totals already computed. It is specifically scoped to Base mainnet; do not use it for Ethereum mainnet, Optimism, Arbitrum, or other chains.

## Known failure modes

- 404 Not Found — transaction hash unknown or not yet mined (not charged)
- Invalid hash format — must be 0x followed by exactly 64 hex characters
- RPC connectivity issue — upstream Base node temporarily unavailable
- Malformed hash parameter — missing or incorrect query parameter name

## How this service works

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

## Output

Returns a JSON object with: chain name and chainId, transaction hash, status (success or reverted), block number and ISO timestamp, confirmation count, from and to addresses, ETH value in both ETH and wei, nonce, input calldata size and 4-byte selector, fee breakdown (gas used, effective gas price in Gwei, L1 data fee in ETH, total fee in ETH), log count, up to 25 decoded ERC-20 transfers (from, to, token contract, symbol, human-readable amount), and a truncation flag if more than 25 transfers exist.

## 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}$",
       "examples": [
        "0x284f8abed91b5631ee28bdb1ccfe78374e18c480cb2ab25f28e3bfac5210fe0b"
       ],
       "description": "Transaction hash on Base mainnet (0x + 64 hex). Unknown or not yet mined → 404 (not charged)"
      }
     },
     "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",
      "nonce",
      "input",
      "fee",
      "logCount",
      "erc20Transfers",
      "erc20TransferCount",
      "erc20TransfersTruncated",
      "rpc",
      "note"
     ],
     "properties": {
      "to": {
       "type": [
        "string",
        "null"
       ]
      },
      "fee": {
       "type": "object",
       "properties": {
        "gasUsed": {
         "type": "integer"
        },
        "l1FeeEth": {
         "type": "number"
        },
        "totalEth": {
         "type": "number"
        },
        "effectiveGasPriceGwei": {
         "type": "number"
        }
       }
      },
      "rpc": {
       "type": "object",
       "properties": {
        "kind": {
         "type": "string"
        },
        "source": {
         "type": "string"
        }
       }
      },
      "from": {
       "type": "string"
      },
      "hash": {
       "type": "string"
      },
      "note": {
       "type": "string"
      },
      "block": {
       "type": "object",
       "properties": {
        "number": {
         "type": "integer"
        },
        "timestamp": {
         "type": "string"
        }
       }
      },
      "chain": {
       "type": "string"
      },
      "input": {
       "type": "object",
       "propert
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/1gateway-base-transaction-lookup-98dc63ad/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)
