{"uid":"cap_oPzljrJv8m6Rr7lBBb0kj","slug":"x402-wallet-spend-history-api-afa6647b","name":"x402 Wallet Spend History API","description":"What a wallet spent on x402 APIs on Base in the last days, read from the chain: total, per seller (named by the Bazaar listings that pay to it), per day, and the recent payments, with other USDC transfers counted apart.","url":"https://tb2s28fm0h8dkq2t.68r.lambda-web.us-east-1.on.aws/v1/spend?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["payer"],"properties":{"days":{"type":"integer","description":"period in days (1-14, default 7)"},"payer":{"type":"string","description":"the paying wallet address (0x...)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"by_day":{},"payments":{},"by_seller":{},"total_usd":{}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pnc8LY-uQFIC4_GFglekb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a breakdown of what a given wallet address spent on x402 APIs on Base over a configurable period, including totals, per-seller breakdown, daily spend, and recent payment history.","exampleAgentPrompt":"Show me what wallet 0xAbc123... has spent on x402 APIs over the last 7 days — break it down by seller and by day, and include the recent payments.","exampleUseCases":[{"title":"Track personal x402 API spending","prompt":"How much has my wallet 0xDead...Beef spent on x402 APIs in the last 14 days? Break it down by seller so I can see who I'm paying the most."},{"title":"Daily spend trend for a wallet","prompt":"Can you pull the day-by-day x402 payment history for wallet 0x1234...abcd over the past 7 days? I want to see if my spending spiked on any particular day."},{"title":"Audit a wallet's x402 payment activity","prompt":"I need to audit wallet 0xFeed...Cafe — show me all its x402 payments on Base from the last 10 days, including which sellers it paid and any other USDC transfers separately."}],"resultDescription":"Returns a JSON object containing: total USD spent on x402 APIs, a per-seller breakdown (sellers named by their Bazaar listings), a per-day spend breakdown, a list of recent individual payments, and any other USDC transfers counted separately — all derived from on-chain Base data.","failureModes":["Missing or invalid 'payer' wallet address returns an error","Days parameter outside 1-14 range may be rejected or clamped to defaults","Wallet with no x402 activity returns zero totals","Network or Lambda timeout for wallets with very high transaction volume","Malformed wallet address (not 0x-prefixed or wrong length) causes query failure"],"whenToPreferThis":"Use this endpoint when you need to analyze spending patterns for a specific wallet on x402 APIs — especially when you want seller-level attribution, daily trends, or a recent payment log. Prefer this over general blockchain explorers when you specifically want x402 API payments on Base with Bazaar seller names already resolved.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T12:30:54.312Z","isFirstParty":false,"canonicalSlug":"x402-wallet-spend-history-api-afa6647b"}