My usage (wallet-keyed purchase · MY Usage

by My usage (wallet-keyed purchase

POSTBaseArbitrumPolygonMonadAvalancheeip155:1329OptimismFraxtaleip155:42220

$0.005

per call · USD Coin on Base

Your own purchase history, keyed to the wallet that pays for the call - no wallet parameter, no signup: the x402 payment IS the identity, so nobody can read another wallet's profile. Returns totals, per-tool counts, per-chain breakdown, and recent receipts with settle tx hashes (independently verifiable on-chain). Requires an EIP-3009 payment (USDC on Base, Polygon, or Arbitrum); Solana/Stellar payments carry no signed payer the server can verify.

Endpoint

POST https://agent402.tools/api/my-usage

65

Calls / 30d

4

Unique payers / 30d

Sep 10

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://agent402.tools/api/my-usage", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "days": 30
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://agent402.tools/api/my-usage" \
  -H "Content-Type: application/json" \
  -d '{"days":30}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "byNetwork": {
    "base": {
      "calls": 40,
      "usd": 1.2
    },
    "polygon": {
      "calls": 2,
      "usd": 0.034
    }
  },
  "bySlug": [
    {
      "calls": 12,
      "lastAt": "2026-07-09T00:00:00.000Z",
      "slug": "hash",
      "usd": 0.012
    }
  ],
  "days": 30,
  "note": "Every USDC row keeps its settle tx - verifiable on-chain.",
  "persistent": true,
  "recent": [
    {
      "at": "2026-07-09T00:00:00.000Z",
      "network": "base",
      "priceUsd": 0.001,
      "slug": "hash",
      "tx": "0x…"
    }
  ],
  "totals": {
    "calls": 42,
    "firstAt": "2026-07-01T00:00:00.000Z",
    "lastAt": "2026-07-09T00:00:00.000Z",
    "paidUsd": 1.234
  },
  "wallet": "0x902dcf34e53695bdea2ffb354b1a2e58bd598256"
}

Payment details

Pay to0xabf4fabd7c416fb67202e5f9002389fc75e2a9d0
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Arbitrum, Polygon, Monad, Avalanche, eip155:1329, Optimism, Fraxtal, eip155:42220
Schemesexact

Is this your API?

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

Get featured →

More from My usage (wallet-keyed purchase & similar services