81trust / 100

Tx Receipt

by Transaction receipt (decoded in Onchain & crypto

x402 APIPassing, checked 2 h ago

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.

POST https://agent402.tools/api/tx-receipt

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
192 ms typical, 192 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/tx-receipt" \
  -H "content-type: application/json" \
  -d '{"hash":"0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b","network":"ethereum"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Ftx-receipt
const res = await pay("https://agent402.tools/api/tx-receipt", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"hash":"0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b","network":"ethereum"}),
});
console.log(await res.json());

Example input

{
  "hash": "0x214b3526ee64f7eabfc94ea536b8680bd95a2da634ebf5149aea189d311be56b",
  "network": "ethereum"
}

Example output

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

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed402192 ms$0.003
5 h agoPassed402200 ms$0.003
10 h agoPassed402185 ms$0.003