# Mach Gallery Base Transaction Context

> Mach Gallery Base Transaction Context is a paid API for AI agents from api.mach.gallery, paid per call via x402, $0.008/call, status unknown (last checked 2026-10-02).

Retrieves full contextual details for a specific Base (EVM) transaction by hash, including status, gas, value, and confirmation count

## Facts

- Endpoint: POST https://api.mach.gallery/api/base/transaction-context?utm_source=zero.xyz
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mach-gallery-base-transaction-context-df869fc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HlVdlMHhq8EMXXqbjl-ki

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 mach-gallery-base-transaction-context-df869fc7 -d '<json body>'
```

Example prompt: Can you look up the transaction context for Base tx hash 0x3a1b2c... and tell me whether it confirmed, who sent it, and how much gas was used?

## When to prefer this

Choose this endpoint when you need a single, detailed lookup of a Base blockchain transaction by hash — especially for confirming payment success, auditing gas usage, or verifying sender/recipient without setting up an API key or subscription. It is ideal for autonomous agents that need on-demand, pay-per-call Base chain data without managing credentials.

## Known failure modes

- Transaction hash not found on Base (found: false in response)
- Malformed or non-hex transaction hash rejected by input validation
- Transaction still pending — confirmations may be 0 and state not yet 'confirmed'
- Network or upstream Base RPC errors causing timeouts
- Payment failure over x402 if USDC balance is insufficient

## How this service works

Fast, low-cost Base data for autonomous agents. No API keys, no subscriptions; pay per call with USDC over x402.

## Output

A JSON object containing the transaction's from and to addresses, success flag, state (e.g. confirmed), value in wei, gas used, fee in wei, effective gas price in wei, block number, number of confirmations, the original tx hash, and the network identifier (eip155:8453). Also includes a 'found' boolean indicating whether the hash resolved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tx_hash": {
   "type": "string",
   "pattern": "^0x[0-9a-fA-F]{64}$",
   "description": "32-byte Base transaction hash."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0x...",
  "from": "0x...",
  "found": true,
  "state": "confirmed",
  "fee_wei": "21000000000",
  "network": "eip155:8453",
  "success": true,
  "tx_hash": "0x...",
  "gas_used": "21000",
  "value_wei": "0",
  "block_number": 36000000,
  "confirmations": 12,
  "effective_gas_price_wei": "1000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mach-gallery-base-transaction-context-df869fc7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mach.gallery](https://www.zero.xyz/host/api.mach.gallery/llms.txt)
