Microquery lets AI agents pay for SQL queries with USDC. No subscription, no API key tied to a human, no minimum spend. Deposit, query, pay per scan.
// Agent queries SEC filings via MCP tool { "tool": "microquery", "query": "SELECT revenue, net_income FROM edgar WHERE ticker = 'AAPL' AND period = '2024-Q3'", "wallet": "0x1a2b...3c4d", "max_cost": 5000 // 5000 micro-USDC = $0.005 } // Response { "data": [{ "revenue": 94930000000, "net_income": 14736000000 }], "bytes_scanned": 21474836480, "cost": 3000, // $0.003 actual "balance": 997000 }
Agent's wallet deposits USDC into an on-chain escrow contract on Base. Funds stay in escrow -- the operator never takes custody.
Each query includes an EIP-712 signed authorization with a max cost. The agent controls exactly how much it spends per query.
Cost is based on decompressed bytes scanned -- objective, reproducible, verifiable. Settlement is batched on-chain hourly.
| Query type | Cost |
|---|---|
| CVE lookup (1 GB) | $0.0002 |
| SEC filing query (20 GB) | $0.003 |
| Wallet profiling (100 GB) | $0.015 |
| Deep on-chain scan (1 TB) | $0.15 |
No browser. No SSO. No subscription. Just a wallet and a query.
POST /query · Authorization: EIP712 {signed}