> ## Documentation Index
> Fetch the complete documentation index at: https://docs.allium.so/llms.txt
> Use this file to discover all available pages before exploring further.

# x402

> x402 protocol analytics data on Base

The `base.agents` schema provides analytics for the x402 micropayment protocol on Base. x402 enables AI agents and developers to pay for API calls with USDC — no API key, no registration, just a wallet.

## Available Tables

| Table                                                                                             | Description                                      |
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
| [x402\_transfers](/historical-data/supported-blockchains/evm/base/agents/x402/transfers)          | Individual x402 token transfer events            |
| [x402\_metrics\_daily](/historical-data/supported-blockchains/evm/base/agents/x402/metrics-daily) | Daily aggregated metrics by facilitator          |
| [x402\_overview](/historical-data/supported-blockchains/evm/base/agents/x402/metrics-overview)    | Lifetime and rolling window (7d/30d/90d) metrics |
| [x402\_facilitators](/historical-data/supported-blockchains/evm/base/agents/x402/facilitators)    | Facilitator registry with supported tokens       |

## Data Schema

```
base.agents.x402_transfers
base.agents.x402_metrics_daily
base.agents.x402_overview
base.agents.x402_facilitators
```

## Key Concepts

### Facilitators

Facilitators are entities that process x402 payments on behalf of users. Each facilitator has:

* A unique identifier (e.g., `coinbase`, `polygon`)
* One or more wallet addresses
* Supported tokens (typically USDC)
* Access type (public, gated, or gated\_paid)

### Transfer Context

In x402 transfers:

* **from\_address** - The buyer (paying for API access)
* **to\_address** - The seller (API provider receiving payment)
* **transaction\_from\_address** - The facilitator processing the payment

## Sample Query

```sql theme={null}
SELECT 
  activity_date,
  facilitator_name,
  total_volume_usd,
  transfer_count
FROM base.agents.x402_metrics_daily
WHERE activity_date >= CURRENT_DATE - INTERVAL '7 days'
ORDER BY activity_date DESC;
```
