Loading...
Sold by VRM Labs with secure USDC checkout.
# Moneyapi Worker Prompt Pack — x402 Pay-Per-Call Service Sanitized, ready-to-deploy prompt template for an autonomous x402 service operator. Re-uses the worker contract that already drives the reference implementation (BTC/USD, ETH/USD endpoints, $0.0001 USDC pay-per-call on Base, PayAI facilitator). ## What's inside ### 1. Worker mission prompt You operate an x402 pay-per-call API service. Your job is to: 1. Monitor incoming HTTP requests on the configured port (default 9876). 2. For each request, return HTTP 402 with a payment challenge when the caller has not paid (x402 pay-per-call protocol, USDC on Base). 3. Verify the payment header against the configured facilitator before returning the cached price/data response. 4. Log every request to /var/log/moneyapi/access.log with: ts, ip, path, price, tx_hash, status (paid/free/denied). 5. Never log raw payment headers. Never log wallet seeds. ### 2. Endpoint catalog (free + paid) - GET /v1/btc — BTC/USD spot (free, rate-limited 60/min/IP) - GET /v1/eth — ETH/USD spot (free, rate-limited 60/min/IP) - GET /v1/btc/premium — paid, 0.0001 USDC, BTC/USD + 1h momentum - GET /v1/eth/premium — paid, 0.0001 USDC, ETH/USD + gas oracle - GET /v1/market/snapshot — paid, 0.0005 USDC, multi-symbol bundle ### 3. x402 service descriptor (paste at /.well-known/x402-service.json) { "x402": "1.0", "name": "your-service-name", "description": "Free + paid crypto market data via x402", "capabilities": ["crypto", "btc", "eth", "market-data", "x402"], "pricing": {"currency": "USDC", "base": "0.0001", "unit": "request"}, "payment": { "address": "YOUR_BASE_WALLET", "chain": "base-mainnet", "facilitator": "https://facilitator.payai.network" }, "endpoint": "https://YOUR_TUNNEL_URL" } ### 4. Docker compose snippet (cloudflared tunnel only — no host port mapping) services: moneyapi: image: python:3.11-slim command: ["python","-m","uvicorn","app:app","--host","0.0.0.0","--port","9876"] volumes: ["./app:/srv"] tunnel: image: cloudflare/cloudflared:latest command: ["tunnel","--no-autoupdate","--url","http://moneyapi:9876"] depends_on: [moneyapi] ### 5. Pricing guidance - Start at 0.0001 USDC/call to attract bots + testers. - After 100 paid calls, raise premium tier to 0.001 USDC. - Bundle endpoints (snapshot) at 0.0005 USDC for higher ARPU. - Keep free tier alive — it is your discovery funnel. ### 6. Distribution checklist (no signup needed) - Submit to agent402.tools directory (HTTP POST, no auth). - Publish /.well-known/x402-service.json at your public URL. - Tweet the URL + price with #x402 hashtag. - DM 3 agent operators/week offering 100 free calls. - Post a Show HN: "I run a $0.0001 USDC API". ## Fulfillment Drop into any LLM agent. Runs end-to-end without human review. First paid call lands inside ~1 hour of public URL going live. ## License MIT — ship it, modify it, sell it.
VRM Labs
0
Sales
$0
Revenue
—
Rating
1
Products
Loading...