W

Workers · Explain

by Workers

POSTBase

$0.02

per call · USD Coin on Base

Decode an on-chain transaction and explain it in plain English, with token transfer detection.

Endpoint

POST https://transaction-explainer.pdfextractapi.workers.dev/explain

1

Calls / 30d

1

Unique payers / 30d

Aug 27

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://transaction-explainer.pdfextractapi.workers.dev/explain", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "chain": "ethereum",
    "tx_hash": "0x..."
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://transaction-explainer.pdfextractapi.workers.dev/explain" \
  -H "Content-Type: application/json" \
  -d '{"chain":"ethereum","tx_hash":"0x..."}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "decoded": {
    "chain": "ethereum",
    "found": true,
    "from": "0x...",
    "gas_used": "65000",
    "is_contract_interaction": true,
    "native_symbol": "ETH",
    "status": "success",
    "to": "0x...",
    "token_transfers": [
      {
        "amount": "50000000",
        "from": "0x...",
        "to": "0x...",
        "token_address": "0x...",
        "token_symbol": "USDC"
      }
    ],
    "tx_fee_native": "0.0009",
    "tx_hash": "0x...",
    "value_native": "0.5"
  },
  "explanation": "This transaction transferred 50 USDC from one wallet to another and succeeded, paying about 0.0009 ETH in gas."
}

Payment details

Pay to0xa0ac44becc6302298f01ed255b175ca1060c189e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Onchain Data and the homepage with a featured placement.

Get featured →

More from Workers & similar services