Agent Wallet Spend Report — x402 & MPP Payments
Pricing
from $2.00 / 1,000 wallet day scanneds
Agent Wallet Spend Report — x402 & MPP Payments
See what an AI-agent wallet spent on paid APIs: x402 USDC payments on Base and MPP session channels on Tempo. Totals, top payees, daily spend, budget flags. Public chain data, read-only.
Pricing
from $2.00 / 1,000 wallet day scanneds
Rating
0.0
(0)
Developer
AgentReady Tools
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 days ago
Last modified
Categories
Features
Share
Agent Wallet Spend Report: x402 & MPP Payments
See what an AI-agent wallet actually paid for. Give it one or more public wallet addresses and it reads public blockchain data to report:
- x402 payments on Base: USDC sent with a signed EIP-3009 authorization, the way x402 sellers get paid.
- MPP sessions on Tempo: Machine Payments Protocol payment channels, with the amount paid to each seller, deposits, refunds and still-open channels.
- Per wallet: total agent spend, top payees, spend per day, and alerts for budget overruns, single large payments, daily spikes and new payees.
It is read-only. It needs no API keys and never signs or sends a transaction. It reads public RPC nodes only.
For AI agents
Apify MCP: https://mcp.apify.com?tools=samgov-tools/agent-spend
Example prompt: "Use samgov-tools/agent-spend on wallet 0x… for the last 7 days with a $20 budget, and tell me who it paid and whether anything looks wrong."
- Input
{"addresses": ["0x…"], "lookbackDays": 7, "budgetUsd": 20}. The dataset begins with onekind: "address-summary"item per wallet, followed by its payment rows (newest first).OUTPUTholds all summaries plus run totals. - Read
totals.agentPaymentsUsd, which is x402 plus MPP sessions. Unclassified outgoing transfers (totals.unclassifiedOutgoingUsd) and Tempo fees (totals.tempoFeesUsd) are kept separate on purpose. flags[].codevalues are stable, so you can branch on them:over_budget,payment_over_limit,daily_spike,new_payees_24h,channel_opened_before_window,network_incomplete,rows_truncated.- Every row has an
explorerUrl, so you can show the user the proof. - Set
maxRowsPerAddress: 0when you only need the summaries. - A wallet is charged only when its report is complete. If a requested network fails, the report is still delivered with
network_incompleteand is free.
Paying agents without an Apify account (x402 / MPP)
An agent without an Apify account can buy a prepaid Apify API token from Apify AGI (agi.apify.com) with x402 (USDC on Base or Solana), MPP (Tempo or Solana) or Skyfire. It then uses that token for the REST call below, with the Actor id samgov-tools~agent-spend, or with the Apify MCP server.
This Actor uses limited permissions, which prepaid tokens require. Apify's current terms: minimum $1, the token expires after 14 days, unused balance is non-refundable, and the feature is experimental. Check agi.apify.com for current terms before paying.
Quick start
curl -X POST "https://api.apify.com/v2/acts/samgov-tools~agent-spend/run-sync-get-dataset-items?token=$APIFY_TOKEN" \-H 'content-type: application/json' \-d '{"addresses":["0x77d8e9f17187c8a4d917858dfa220be00395d2d4"],"lookbackDays":7,"budgetUsd":5}'
Input
| Field | Default | Meaning |
|---|---|---|
addresses | demo wallet | 1–10 EVM addresses (0x + 40 hex). The same address is checked on Base and Tempo. |
lookbackDays | 7 | 1–7 days back from now. |
networks | both | base-x402, tempo-mpp. The price is the same either way. |
includeUnclassifiedTransfers | true | Also list other outgoing stablecoin transfers, reported separately. |
budgetUsd | – | Flags over_budget when agent spend in the window is above this amount. |
perPaymentLimitUsd | – | Flags any single payment or channel above this amount. |
maxRowsPerAddress | 500 | Rows stored per wallet (0–10,000). Totals always use every row. |
Output
Summary item (abridged, from a real run on 2026-11-14):
{"kind": "address-summary","address": "0x77d8e9f17187c8a4d917858dfa220be00395d2d4","window": { "from": "2026-11-07T22:20:00.000Z", "to": "2026-11-14T22:20:00.000Z", "days": 7 },"networks": { "base": "ok", "tempo": "ok" },"totals": { "agentPaymentsUsd": 8.96, "x402Usd": 8.96, "x402Count": 448, "mppSessionUsd": 0, "unclassifiedOutgoingUsd": 0 },"topPayees": [{ "payee": "0x7284d41b5b852f2bd4c99bdf95043d84452d299c", "network": "base", "protocol": "x402-payment", "usd": 8.96, "count": 448 }],"flags": [{ "code": "over_budget", "message": "Agent payments $8.96 exceed the budget of $5 for this window." }]}
Payment row:
{"kind": "mpp-session", "network": "tempo", "payee": "0xca4e835f803cb0b7c428222b3a3b98518d4779fe","tokenSymbol": "OUSD", "amountUsd": 0.001, "channelStatus": "open", "depositedUsd": 0.001,"timestamp": "2026-11-14T20:23:32.000Z", "explorerUrl": "https://explore.tempo.xyz/tx/0x…"}
Pricing
Pay per event: $0.002 per wallet per day scanned (address-day). Both networks are included.
- 1 wallet × 7 days = 14 events = $0.028.
- 10 wallets × 7 days = $0.14.
You are charged only after a wallet's complete report is stored. Partial reports (a network failed) and invalid input are free. Your run's maximum cost setting is respected: the Actor scans only as many wallets as fit within it.
What is and is not counted
- x402: USDC on Base sent with an EIP-3009
transferWithAuthorizationsigned by the wallet. MPP's EVM method and some gasless wallets use the same mechanism, so a few non-x402 payments can appear. Not covered: x402 on Solana or other EVM chains, and the permit2-baseduptoscheme. - MPP sessions: payment-channel escrow events on Tempo (both the legacy escrow and the TIP-1034 precompile). The amount paid is the final amount at close, or the highest settled amount while the channel is open. Vouchers the seller has not yet settled on-chain are invisible.
- MPP one-time charges on Tempo are ordinary token transfers and cannot be told apart from other payments, so they appear as unclassified transfers.
- Stablecoins (USDC, USDC.e, OUSD, pathUSD and the MACH credit) are valued at $1. Other tokens get
amountUsd: null. - Blockchain addresses are pseudonymous. This Actor does not identify people.
Limits and behavior
- Uses the free public RPC nodes
base-rpc.publicnode.comandrpc.tempo.xyz, at no more than 2 requests per second per node. It retries 429 and 5xx responses with backoff, and halves the block range when a node rejects a range or result size. - The window is capped at 7 days because the free Base node answers older history very slowly. A 7-day run for 2 wallets took 51 s and 92 RPC calls in testing.
- Only read methods are sent (
eth_blockNumber,eth_getBlockByNumber,eth_getLogs,eth_call). - The RPC endpoints are fixed, so the input cannot point the Actor at other hosts.
Local development
npm installnpm test # 14 tests; replay recorded RPC responses, no networknpm run live -- 0x… # live smoke run, re-records test/fixtures/recorded.jsonapify run # full local Actor run (INPUT in storage/key_value_stores/default)python3 scripts/make-schemas.py # regenerate .actor schemas
FAQ
Is this the wallet's full spending? No. It shows agent payments that leave public on-chain evidence on Base (x402) and Tempo (MPP). Card payments, custodial balances and other chains are not visible.
Why does an open MPP channel show a small amount? Sellers settle vouchers in batches. The on-chain amount catches up when they settle or close the channel.
Can it block payments? No. It only reads. Use the flags to alert a person or another agent.