Agent402 / tools / block-receipts

Block receipts (one block, summarised)

$0.005 per call · USDC via x402 · POST /api/block-receipts

Every transaction receipt in one block, fetched as a single upstream read and summarised: tx count, succeeded vs failed, total gas used, total fees, log count, contract creations, tx-type mix - plus compact per-transaction rows (hash, from, to, status, gas used, effective gas price, fee, log count) capped at 300. Block analytics, failed-tx hunting, or 'who paid what in block N' without N separate receipt calls.

TRY IN PLAYGROUND →

Input

FieldTypeDescription
block *stringBlock number (decimal or 0x hex) or latest.
limitnumberPer-transaction rows to return, 0-300 (default 100). The summary always covers the whole block.
networkstringethereum / base / polygon / arbitrum / optimism (default ethereum).

Example output

{
  "network": "ethereum",
  "chainId": 1,
  "block": 25563191,
  "blockHash": "0x8e12…1243",
  "summary": {
    "txCount": 149,
    "succeeded": 143,
    "failed": 6,
    "gasUsed": "16506190",
    "feeWei": "4453605500724532",
    "feeNative": "0.004453605500724532",
    "logCount": 420,
    "contractCreations": 0,
    "types": {
      "0x2": 126,
      "0x0": 16,
      "0x4": 6,
      "0x3": 1
    }
  },
  "returned": 5,
  "receipts": [
    {
      "hash": "0xdcae…9cd6",
      "index": 0,
      "status": "success",
      "from": "0xb01c…9c2e",
      "to": "0x7c46…0f54",
      "contractAddress": null,
      "type": "0x2",
      "gasUsed": "21000",
      "effectiveGasPriceGwei": 1.040610226,
      "feeWei": "21852814746000",
      "logCount": 0
    }
  ],
  "source": "alchemy",
  "fetchedAt": "2026-08-22T12:00:00.000Z"
}

Try it - see the 402 challenge (free)

curl -i -X POST https://agent402.tools/api/block-receipts \
  -H "Content-Type: application/json" \
  -d '{"block":"25563191","network":"ethereum","limit":5}'

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/block-receipts", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "block": "25563191",
    "network": "ethereum",
    "limit": 5
  }),
});
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 →