paylog.dev now supports x402 on Base
After MPP on Tempo, paylog can now track USDC spend on Base via the x402 protocol. New endpoints, CLI flags, and what changed under the hood.
Overview
paylog.dev now supports x402 payments (EIP-3009) on Base mainnet.
Until now, paylog only tracked spending on Tempo via MPP. With this update you can also track Base USDC transfers made through x402-enabled services.
New endpoint
GET /api/v1/x402/report
Returns x402 spending history for a Base wallet. The endpoint itself is x402-protected — it costs $0.01 USDC per call.
GET https://paylog.dev/api/v1/x402/report?wallet=0x...
GET https://paylog.dev/api/v1/x402/report?wallet=0x...&chain=all
Parameters:
| Parameter | Required | Description |
|---|---|---|
wallet |
✅ | Base wallet address |
chain |
❌ | base (default) or all |
chain=all returns a combined report that merges Tempo MPP and Base x402 spend into a single response.
Example response (chain=base)
{
"chain": "base",
"wallet": "0x...",
"total_spent_usd": 0.5,
"by_service": [
{ "name": "Browserbase", "url": "browserbase.com", "spent": 0.3, "txns": 30 },
{ "name": "Allium", "url": "alliumlabs.xyz", "spent": 0.2, "txns": 20 }
],
"other": { "total_usd": 0.0, "txns": 0, "addresses": [] },
"daily_breakdown": [...]
}
CLI usage
v0.3.0 of @kakedashi/paylog adds a --chain flag:
# Base only
EVM_PRIVATE_KEY=0x... npx @kakedashi/paylog report --chain base
# MPP + Base combined
EVM_PRIVATE_KEY=0x... npx @kakedashi/paylog report --chain all
# Tempo MPP only (unchanged)
npx @kakedashi/paylog report --days 7
x402 payments require an EVM private key on Base mainnet. Set EVM_PRIVATE_KEY or pass --private-key. The wallet address is derived automatically from the key.
Supported services
Over 100 x402-enabled service addresses are mapped (collected from the Bazaar / CDP discovery API):
- Browserbase
- Allium
- Parallel
- Pinata IPFS
- Hugen
- 100+ more
How it works
- Fetch the wallet's Base USDC transfer history via
alchemy_getAssetTransfers. - Resolve recipient addresses against the
services-x402.jsonmap. - Aggregate by service and by day and return.
Base block time is ~2 seconds. The endpoint always fetches the full all-time history (fromBlock=0).
Pricing
| Endpoint | Price | Protocol |
|---|---|---|
/api/v1/report |
$0.001 USDC | MPP (Tempo) |
/api/v1/x402/report |
$0.01 USDC | x402 (Base mainnet) |
/api/v1/insights |
$0.001 USDC | MPP (Tempo) |
Next on the list: date filtering for the x402 report and a Base insights endpoint.