Documentation
Introduction

x402Books AI

The financial intelligence layer for the agent economy.

AI agents are becoming economic actors. They pay for APIs, data, compute, and services — all onchain, all in USDC. But raw wallet data tells you nothing useful on its own.

x402Books AI solves this. It scans any Base wallet and turns raw USDC activity into structured financial reports, AI-categorized transactions, exportable data, and agent-readable JSON output.

In one line: x402Books AI turns wallet activity into readable books.

What you can do

  • Scan any Base wallet and view spend, income, and net flow
  • AI-categorize every transaction — API calls, compute, data, services, income
  • Review flagged or anomalous activity in a dedicated queue
  • Export financial reports as PDF, CSV, or agent-ready JSON
  • Share public wallet reports via a permanent link — no login required
  • Query wallet financial data programmatically via the API

Who it's for

AI Agent Developers

Understand what your agents are spending and earning onchain.

Onchain Builders

Get financial clarity on any Base wallet you work with.

x402 Developers

Track micropayment activity and identify x402 payment patterns.

Protocol Teams

Monitor wallet-level financial activity across your ecosystem.

Why it matters

Without a financial intelligence layer, agent wallet activity is invisible — raw hashes, no context, no categories. You can't tell what was spent, where income came from, or whether a transaction was unusual.

x402Books AI makes wallet activity readable, reportable, and actionable — for both humans and the agents themselves.

Introduction

V1 Features

Everything included in the live v1 release.

V1 is live and open for feedback.
lock_openAuth
  • Privy login (email + X)
  • Persistent sessions
  • User profile stored securely
dashboardDashboard
  • 4 date ranges (7d · 14d · 30d · 90d)
  • Spend, Income, Net Flow, Tx Count
  • AI summary, line chart, donut chart
receipt_longTransactions
  • Searchable + filterable table
  • Inline AI category editing
  • Per-transaction notes + detail drawer
flagFlags
  • Duplicate & unusual amount detection
  • High-frequency + unknown counterparty flags
  • Bulk mark-reviewed workflow
descriptionReports
  • PDF + CSV export
  • Agent-ready JSON output
  • Income vs Spend visual + counterparties
categoryCategories
  • AI-categorized spend breakdown
  • Horizontal bar chart by category
  • Income breakdown + AI narrative
account_balance_walletWallets
  • Recently scanned wallets
  • Quick wallet switching
  • Top counterparties by volume
sharePublic Reports
  • Shareable /report/[wallet] URL
  • No login required to view
  • Live data with range switcher
Introduction

How It Works

Six steps from raw wallet data to financial intelligence.

01

Sign In

Authenticate with Privy using your email or X/Twitter account. Your session is persisted securely — no wallet signature required.

02

Paste a Wallet Address

Enter any Base wallet address into the scanner. x402Books AI is read-only — it works with public onchain data only.

03

Fetch & Normalize Activity

x402Books AI fetches all USDC transfers for the wallet across the selected date range (7d, 14d, 30d, or 90d) and normalizes the raw data.

04

AI Categorization

Claude AI classifies each transaction into a category — API Calls, Data Access, Compute, Agent Services, Income, and more. A rule-based fallback ensures every transaction is classified.

05

Generate Reports

Export your financial data as a PDF report, CSV spreadsheet, or structured agent-ready JSON. All formats are available from the Reports page.

06

Share Public Reports

Every wallet report is available at a permanent public URL. Share it with anyone — no login required to view.

Transaction categories

AI categorization assigns each transaction one of the following labels:

Categories
api_call          → API endpoint consumption
data_access       → Data query or feed access
compute           → Compute or inference cost
agent_service     → Payment to another agent
subscription      → Recurring service payment
income            → Inbound USDC received
refund            → Returned payment
internal_transfer → Wallet-to-wallet self-transfer
unknown           → Unclassified activity
Product

Core Pages

Every page in the x402Books AI app and what it does.

/dashboardOverview

Wallet scanner, stat cards, AI summary, charts, and recent activity.

Scan wallet, change range, categorize, export
/transactionsTransactions

Full transaction explorer with search, filters, inline editing, and detail drawer.

Edit category, add note, open in Basescan
/flagsFlags

Risk review queue surfacing anomalous activity across all transactions.

Filter by flag type, mark reviewed, bulk clear
/reportsReports

Reporting center for PDF, CSV, JSON, and visual financial summaries.

Download PDF, export CSV, copy agent JSON
/categoriesCategories

Category intelligence page breaking down spend and income by type.

View breakdown, read AI narrative insight
/walletsWallets

Wallet management with counterparty analysis and quick switching.

Switch wallet, copy address, open Basescan
/settingsSettings

Account preferences — theme, wallet, sign-out, and cache management.

Toggle theme, clear cache, sign out
/report/[wallet]Public Report

Publicly shareable wallet report — no authentication required.

Share link, download PDF, switch range
Product

API Reference

Programmatic access to wallet financial intelligence.

The API is live. Generate your key at /developer. Free tier starts at 100 req/day — no token required.

Endpoints

GET/api/ledger/summary

Returns a financial summary for a given wallet and time range.

Request
GET /api/ledger/summary?wallet=0x...&period=30d
Response
{
  "wallet": "0x7d3f...42f1",
  "range": "30d",
  "total_spend": 42.80,
  "total_income": 91.20,
  "net_flow": 48.40,
  "transaction_count": 128,
  "likely_x402_count": 94,
  "top_category": "api_call",
  "budget_status": "safe"
}
GET/api/ledger/transactions

Returns paginated, categorized transactions for a wallet.

Request
GET /api/ledger/transactions?wallet=0x...&period=30d&page=1
Response
{
  "transactions": [
    {
      "tx_hash": "0xabc...",
      "direction": "expense",
      "amount_usdc": 0.42,
      "category": "api_call",
      "counterparty": "0xdef...",
      "is_likely_x402": true,
      "confidence_score": 92,
      "timestamp": "2026-05-01T14:32:00Z"
    }
  ],
  "total": 128,
  "page": 1
}
POST/api/ledger/categorize

Runs AI categorization on a wallet's transactions for a given period.

Request
POST /api/ledger/categorize
Content-Type: application/json

{
  "wallet": "0x7d3f...42f1",
  "period": "30d"
}
GET/api/ledger/report

Returns the full report data used to render public wallet report pages.

Request
GET /api/ledger/report?wallet=0x...&period=30d

Agent JSON output

x402Books AI generates structured JSON that agents can consume directly to understand their own financial state. This enables agents to make budget-aware decisions.

Agent financial state
{
  "wallet": "0x7d3f...42f1",
  "generated_at": "2026-05-12T10:00:00Z",
  "range": "30d",
  "summary": {
    "total_spend": 42.80,
    "total_income": 91.20,
    "net_flow": 48.40,
    "transaction_count": 128
  },
  "categories": [
    { "category": "api_call", "total_usdc": 18.40, "count": 74 },
    { "category": "data_access", "total_usdc": 11.25, "count": 31 },
    { "category": "compute", "total_usdc": 13.15, "count": 23 }
  ],
  "report": {
    "title": "Healthy agent wallet with consistent API spend",
    "narrative": "This wallet shows steady outflows across API and compute categories...",
    "budget_status": "safe",
    "top_category": "api_call"
  }
}
Example use case: An agent reads its wallet report via the API before deciding whether it has sufficient balance to initiate another API call.
Token

$LUCA

The token for Luca — not for x402Books API access.

$LUCA is Luca's intelligence token. It unlocks the full power of Luca as a financial intelligence agent — deeper analysis, premium reports, and priority verification. It is not required to use x402Books or the registry API.

analytics
Deep Financial Analysis

Luca goes beyond surface scores. Full settlement classification, treasury runway, counterparty concentration — the complete operational picture.

description
Premium Treasury Reports

Audit-ready financial reports for your agent. Shareable, generated by Luca on demand, structured for compliance.

verified
Priority Verification

Skip the queue. $LUCA holders get priority wallet manifest review and faster profile upgrades in the registry.

x402Books API is separate. Accessing the registry, wallet data, and financial intelligence endpoints does not require $LUCA. API access is tiered by usage volume — free, developer, and enterprise.

Access tiers

FeatureFreeProTeamAgent
Wallet scanning
Transaction analytics
AI categorization
Public report sharing
PDF + CSV export
Deep wallet scans
API access
Multi-wallet tracking
Agent financial score
High-frequency queries
Token

Monetization

Multiple revenue streams built for the agent economy.

01
SaaS Subscriptions

Monthly access to Pro and Team tiers with advanced features, exports, and multi-wallet support.

02
API Usage Fees

Pay-per-call pricing for developers and agents querying wallet financial data programmatically.

03
Premium Reports

On-demand deep scans, full history exports, and tax-style PDF reports for detailed financial analysis.

04
$LUCA Token

Token powers discounted access, feature unlocks, and future agent usage flows across the platform.

05
Agent Financial Score

A future scoring system assigning wallet-level financial reliability scores — useful for agents and protocols.

06
Intelligence Products

Aggregated ecosystem data, trend reports, and financial intelligence for protocols, researchers, and teams.

07
Enterprise Tools

Advanced analytics, bulk wallet reporting, and custom integrations for teams managing large agent fleets.

Vision

Roadmap

Six phases from v1 to the financial operating system for autonomous agents.

Phase 1Financial Identity LayerLive
  • Wallet scanner + AI categorization (16 categories)
  • Dashboard, analytics, PDF / CSV export
  • Public shareable report links — no auth required
  • Agent Financial Registry — 84 agents indexed
  • Developer API keys + $LUCA tier system
  • Settlement classifier + Luca verdict signals
Phase 2Trust & Registry InfrastructureLive
  • Agent verification submissions queue
  • Wallet manifest format (.x402books/wallets.json)
  • AEON + EigenCloud ecosystem integration — 5 ecosystems live
  • Settlement pattern badges on public profiles
  • Growth OS — product usage metrics
  • Registry fully DB-driven via Supabase
Phase 3Ecosystem EmbedsUp next
  • Surplus inference spend logging
  • Virtuals agent onboarding
  • Embeddable agent profile cards — live at /registry/[slug]/card
  • x402Books profile sharing as default trust signal
Phase 4Financial IntelligencePlanned
  • Treasury health alerts
  • Settlement quality scoring
  • Operational runway tracking
  • Recurring spend detection
  • Inference economics dashboard
Phase 5Network EffectsPlanned
  • Public leaderboards by activity score
  • Ecosystem discovery feed
  • Verified treasury badge — projects earn it
  • Embeddable report cards
  • State of Agent Finance — weekly reports
Phase 6Infrastructure RevenuePlanned
  • Verification as a service
  • Premium treasury reports
  • Enterprise monitoring API
  • Compliance-grade audit exports
  • Ecosystem analytics packages
Trust

Security

x402Books AI is read-only. It never touches your funds.

Read-only by design. x402Books AI analyzes public onchain data. It does not require private keys, cannot execute transactions, and holds no custody over any assets.

What x402Books AI does not do

  • Request or store private keys
  • Execute transactions from any wallet
  • Take custody of funds
  • Access wallet signing capabilities
  • Store raw wallet secrets

What x402Books AI does

  • Reads public onchain USDC transfer data via Base RPC
  • Stores Privy user IDs, email addresses, and X handles in Supabase
  • Associates wallet addresses with user sessions (opt-in)
  • Generates AI summaries using Claude Haiku (Anthropic)

Authentication

User authentication is handled entirely by Privy. x402Books AI does not implement its own credential store. Sessions are issued as HMAC-signed cookies with no sensitive data embedded.

Data handling

All wallet activity analyzed by x402Books AI is sourced from public Base chain data. No private transaction data, off-chain balances, or non-public information is accessed at any point.

Trust

FAQ

Common questions about x402Books AI.

Trust

Positioning

What x402Books AI is, who it's for, and where it's going.

Readable books for the agent economy.

One-line description

x402Books AI turns Base wallet activity into financial intelligence for humans and AI agents.

Full description

x402Books AI is the financial intelligence layer for the agent economy. It gives developers, builders, and autonomous agents the tools to understand wallet-level spend, income, categories, reports, and financial activity — in a format that both humans and machines can use.

The vision

AI agents are becoming economic actors. As they operate autonomously — paying for APIs, data, and compute in real time — they need more than a wallet. They need accounting. They need budgeting. They need financial visibility.

x402Books AI is building the financial operating system for autonomous agents. Starting with the ledger. Adding intelligence. Growing with the ecosystem.

Product first. Token later. x402Books AI is built on real utility — readable wallet data that developers and agents actually need today.