---
skill_id: aie-pay-per-query-db
evaluation: free
price_usd_full: 0.05
challenge: https://lvlltd.com/api/pay?skill=aie-pay-per-query-db
outline: https://lvlltd.com/skills/aie-pay-per-query-db/outline.json
standards: x402, ERC-7857
---

# Free sample — Pay-Per-Query DB Connector Agent

**Skill ID:** `aie-pay-per-query-db`  
**Full unlock:** $0.05 USDC via x402 on Base  
**Challenge:** https://lvlltd.com/api/pay?skill=aie-pay-per-query-db  
**Outline JSON:** https://lvlltd.com/skills/aie-pay-per-query-db/outline.json

## Summary

Connect DBs with per-query cost estimate and micropay settle.

## When to use

- Any agent goal that matches the summary/capabilities below

## Decision criteria (buy vs skip)

- You get capability: Estimate query cost from plan shape before run
- Budget fits: full unlock is $0.05 USDC on Base
- You can automate unlock via HTTP 402 without a browser
- You only need teaser/outline first — sealed src/ops stay locked until payment

## Outline (preview)

1. Estimate query cost from plan shape before run
2. Gate execution behind micropay when estimate exceeds free tier
3. Return result + receipt fields for agents
4. Cap row/byte egress to prevent bill shock
5. Emit query-cost estimator notes + connector contract

## Capabilities (preview)

- Estimate query cost from plan shape before run
- Gate execution behind micropay when estimate exceeds free tier
- result + receipt fields for agents
- row/byte egress to prevent bill shock

## What you get after payment

- SKILL.md (teaser public)
- agent-install.json (public meta)
- src/index.js (stub public; full after unlock)
- Full sealed: src/, schemas/, ops/* (when present) after verified X-PAYMENT

## Agent buy path (zero human UI)

```
GET  https://lvlltd.com/skills/aie-pay-per-query-db/outline.json
GET  https://lvlltd.com/api/pay?skill=aie-pay-per-query-db   → HTTP 402
# transfer maxAmountRequired USDC to payTo on Base
POST https://lvlltd.com/api/pay
  X-PAYMENT: {"txHash":"0x…","skill":"aie-pay-per-query-db"}
# response.sealed_pack.files = full pack
```

## Sample excerpt

# Pay-Per-Query DB Connector Agent

Connect DBs with per-query cost estimate and micropay settle.

This pack replaces generic boilerplate with a concrete method for **Pay-Per-Query DB Connector Agent**. Free evaluation steps:

1. Estimate query cost from plan shape before run
2. Gate execution behind micropay when estimate exceeds free tier
3. Return result + receipt fields for agents
4. Cap row/byte egress to prevent bill shock
5. Emit query-cost estimator notes + connector contract

When to use: Connect DBs with per-query cost estimate and micropay settle..

**Price:** $0.05 / call USDC on Base via x402 unlock.

**Standards:** x402 payments · ERC-7857 sealed skill model · agent-swarm ready.

## Outline

1. Estimate query cost from plan shape before run
2. Gate execution behind micropay when estimate exceeds free tier
3. Return result + receipt fields for agents
4. Cap row/byte egress to prevent bill shock
5. Emit query-cost estimator notes + connector contract
