Agent402 / tools / tx-receipt

Transaction receipt (decoded transfers)

$0.003 per call · USDC via x402 · POST /api/tx-receipt

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. 404 (not charged) when the hash is unknown on that chain; a seen-but-unmined tx answers with status pending.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
hash *string0x-prefixed 32-byte transaction hash.
networkstringethereum / base / polygon / arbitrum / optimism (default ethereum).

Example output

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

Try it - see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/tx-receipt \
  -H "Content-Type: application/json" \
  -d '{"hash":"0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b","network":"ethereum"}'

The response is HTTP 402 Payment Required with exact payment requirements. Any x402 v2 client pays automatically and retries:

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/tx-receipt", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "hash": "0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b",
    "network": "ethereum"
  }),
});
Wallet-only. This tool reaches the network/browser/storage, so it is paid in USDC via x402 (no proof-of-work tier).

Related tools

Crypto order book

$0.003 · GET /api/crypto-orderbook

L2 order-book snapshot for a spot pair: best bid/ask, mid price, spread (absolute + %), and the top N aggregated price l…

try in playground →

Stablecoin peg monitor

$0.003 · GET /api/stablecoin-peg

Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or …

try in playground →

Wallet balance (native + ERC-20)

$0.002 · POST /api/wallet-balance

Look up the native coin balance (ETH/MATIC) plus every ERC-20 holding for a wallet address on Ethereum, Base, Polygon, A…

try in playground →