# Transaction by Hash – Base & Ethereum (ScanPay)

> Transaction by Hash – Base & Ethereum (ScanPay) is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-01).

Looks up an Ethereum or Base transaction by its hash, returning from/to addresses, value, nonce, gas, and input size.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/tx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/transaction-by-hash-base-ethereum-scanpay-3f6c3e33
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vEBa6RIxE7CeTWzRLqFve

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 transaction-by-hash-base-ethereum-scanpay-3f6c3e33
```

Example prompt: Can you look up the transaction details for hash 0x834f01e6c76729c794c675897b02457c9ede43101dd93749f07b78001378d8a3 on Base — I need to see who sent it, the value transferred, nonce, and gas used.

## When to prefer this

Use this endpoint when you need quick on-chain transaction lookup by hash for Base or Ethereum networks specifically, without running a full node or integrating a heavier blockchain indexer. It is ideal for agents that need to verify payments, audit on-chain activity, or extract basic transaction metadata in real time at low cost ($0.01/call).

## Known failure modes

- Transaction hash not found on the specified network (found: false)
- Invalid or malformed transaction hash format
- Network not supported (only Base and Ethereum are supported)
- RPC node unavailability causing timeout or 5xx error
- Missing required query parameter (hash or network)

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object with transaction details including: found status, from/to addresses, ETH value (in ETH and wei), nonce, gas limit, gas price in wei, block number, input data size in bytes, whether it was a contract creation, network name, chain ID, and price in USD for the lookup.

## 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"
      },
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "gas": 21000,
  "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
  "hash": "0x834f01e6c76729c794c675897b02457c9ede43101dd93749f07b78001378d8a3",
  "found": true,
  "nonce": 7,
  "network": "base",
  "product": "scanpay.tx",
  "chain_id": "eip155:8453",
  "price_usd": 0.005,
  "value_eth": 0,
  "value_wei": 0,
  "input_size": 0,
  "block_number": 53336036,
  "gas_price_wei": 6000000,
  "is_contract_creation": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/transaction-by-hash-base-ethereum-scanpay-3f6c3e33/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
