# Agent402 Transaction Receipt Lookup

> Agent402 Transaction Receipt Lookup is a paid API for AI agents from agent402.tools, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-14).

Fetches a decoded on-chain transaction receipt including gas, transfers, status, and token interactions for a given tx hash on EVM-compatible networks

## Facts

- Endpoint: POST https://agent402.tools/api/tx-receipt
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-transaction-receipt-lookup-0f576158
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DJFdKPZdYIrIcay1L4ddc

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 agent402-transaction-receipt-lookup-0f576158 -d '<json body>'
```

Example prompt: Can you pull up the receipt for Ethereum transaction 0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b and tell me whether it succeeded, how much gas was used, and if any ERC-20 tokens were transferred?

## When to prefer this

Choose this endpoint when you need a fully decoded, human-readable transaction receipt from an EVM chain including token transfer extraction, gas breakdown, and contract interaction details — especially when you don't want to run your own Alchemy node or parse raw RPC responses. It is ideal for agents verifying payments, auditing DeFi activity, or confirming on-chain state changes across Ethereum, Base, Polygon, Arbitrum, or Optimism without API key setup.

## Known failure modes

- Invalid or malformed transaction hash returns an error
- Transaction hash not found on the specified network returns 404 or empty
- Unsupported network name returns a validation error
- Network mismatch (hash exists on Base but Ethereum was specified) may return not-found
- Payment failure (insufficient USDC balance) returns 402
- Rate limits or upstream Alchemy errors may return 5xx

## How this service works

Full receipt for a transaction hash in one call: status, block, from/to, value, gas used vs limit, effective gas price, total fee, tx type, calldata selector, contract created, plus every ERC-20 / ERC-721 / ERC-1155 Transfer event decoded locally from the logs (token, from, to, amount, tokenId) and the list of contracts that emitted logs. Receipt and transaction are fetched in a single batched request.

## Output

Returns a JSON object with full transaction details: status (success/failed), to/from addresses, value in wei and native units, gas used, gas limit, effective gas price in gwei, fee in wei and native, block number, block hash, nonce, transaction type, input byte length, function selector, log count, contract address (if deployment), all contracts touched, and an array of token transfer events (ERC-20/ERC-721) with token contract, from, to, raw value, token ID, log index, and standard. Also includes the data source (Alchemy) and fetch timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hash": {
   "type": "string",
   "description": "0x-prefixed 32-byte transaction hash."
  },
  "network": {
   "type": "string",
   "description": "ethereum / base / polygon / arbitrum / optimism (default ethereum)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "0xa0b8…eb48",
  "from": "0xa916…6081",
  "hash": "0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b",
  "type": "0x2",
  "nonce": 873,
  "value": "0",
  "feeWei": "1833474998248",
  "source": "alchemy",
  "status": "success",
  "chainId": 1,
  "gasUsed": "45148",
  "network": "ethereum",
  "gasLimit": "54633",
  "logCount": 1,
  "selector": "0xa9059cbb",
  "valueWei": "0",
  "blockHash": "0x8e12…1243",
  "feeNative": "0.000001833474998248",
  "fetchedAt": "2026-08-22T12:00:00.000Z",
  "timestamp": "2026-07-19T00:32:23.000Z",
  "transfers": [
   {
    "to": "0xd8da…6045",
    "from": "0xa916…6081",
    "tokenId": null,
    "contract": "0xa0b8…eb48",
    "logIndex": 413,
    "rawValue": "420000",
    "standard": "erc20"
   }
  ],
  "inputBytes": 68,
  "blockNumber": 25563191,
  "contractAddress": null,
  "contractsTouched": [
   "0xa0b8…eb48"
  ],
  "transactionIndex": 128,
  "effectiveGasPriceGwei": 0.040610326
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-transaction-receipt-lookup-0f576158/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
