You registered on minia2a and got 500 free credits. Now what?
This guide gets you from "I have credits" to "I just called a paid API and got a result" in under 2 minutes. No blockchain knowledge required. No wallet setup. Just HTTP.
1 Register (if you haven't):
curl -s -X POST https://minia2a.uk/api/v1/register-simple \
-H "Content-Type: application/json" \
-d '{"name":"my-agent"}'
Copy the wallet address from the response. You now have 500 credits.
2 Spend a credit — call any endpoint with your wallet:
curl -s "https://minia2a.uk/x402/time" \ -H "X-Wallet: YOUR_WALLET_ADDRESS"
That's it. One credit deducted. You get the result.
3 Check your balance:
curl -s "https://minia2a.uk/api/v1/credits?wallet=YOUR_WALLET_ADDRESS"
If you're using Claude Code or Codex, you may have noticed: your agent wants to call a paid API, but it stops before paying. This isn't a bug — it's a missing spending policy.
Agent frameworks default to "ask the human before spending money." If you're not watching, the agent stalls. This is the agent purchasing loop problem we wrote about earlier today.
The fix for Claude Code users today:
You have permission to call paid APIs up to $1/call and $5/day. When you see HTTP 402 with a price under $1, pay it automatically. My wallet: YOUR_WALLET_ADDRESS Use it in the X-Wallet header on all x402 calls.
Add this to your CLAUDE.md or say it at the start of a session. Claude Code can sign and send USDC transactions when given explicit permission.
Create ~/.agent-budget:
{"daily_limit_usdc": 5, "max_per_call_usdc": 1}
This is a proposed standard — framework support is coming. For now, Method 1 works today.
You don't need an agent framework to spend credits. curl works everywhere:
curl -s "https://minia2a.uk/x402/crypto-price?symbol=ETH"
curl -s "https://minia2a.uk/x402/crypto-price?symbol=ETH" \ -H "X-Wallet: 0xYOUR_WALLET"
curl -s "https://minia2a.uk/x402/crypto-price?symbol=ETH" \ -H "Authorization: Bearer 0xYOUR_WALLET"
All three work. The X-Wallet header is the simplest.
Based on real usage data from 12,427 trials — these are what agents actually call:
| Endpoint | What it does | Trials |
|---|---|---|
x402-recall | Web recall / search augmentation | 1,740 |
x402-gas | Current gas prices (all chains) | 1,236 |
x402-captcha-solve | Solve CAPTCHAs programmatically | 1,202 |
x402-find | Find x402 services by keyword | 1,122 |
x402-polymarket | Polymarket odds & data | 615 |
x402-time | Precise UTC time | 504 |
x402-web-scrape | Scrape any webpage to text | 306 |
x402-store | Agent key-value storage | 298 |
x402-screenshot | Headless browser screenshots | 285 |
x402-uuid | Generate UUIDs | 221 |
import requests, os
WALLET = os.getenv("MINIA2A_WALLET") # your registered wallet
r = requests.get("https://minia2a.uk/x402/crypto-price",
headers={"X-Wallet": WALLET},
params={"symbol": "ETH"})
print(r.json())
# {"ok":true,"result":{"symbol":"ETH","price_usd":..."},"credits_remaining":499}
Set MINIA2A_WALLET as an environment variable and every call just works. Same pattern for Node.js, Go, Rust — any HTTP client.
When credits_remaining hits 0, you have options:
credits_remaining (credit model) vs X-Payment-Required header (direct payment).
You can — that's the point. x402 doesn't replace API keys; it removes the need for them. When your agent calls 20 different services, it shouldn't manage 20 different API keys, rate limits, and billing dashboards. One wallet. One payment rail. Any endpoint.
This matters most when:
Already registered?
Paste your wallet on the discover page to get ready-to-run curl commands with your credits pre-filled.
You're out of trials and not sending a wallet. Either register for credits or use X-Wallet header.
The first 5 calls per endpoint per IP are free trials. Credits only deduct after trial exhaustion. Check credits_remaining in the response.
This is the agent purchasing loop problem. Tell your agent it has spending permission (see Method 1 above). We're working on the .agent-budget standard to fix this permanently.
Check your agent's environment variables or CLAUDE.md. The wallet is a standard Ethereum address (0x...). If you registered with /api/v1/register-simple, the wallet was in the response — hopefully you saved it!
Tags: x402, getting-started, agent-payments, tutorial, credits, claude-code, codex