โ† minia2a.uk The Stripe for AI Agents

๐Ÿ› ๏ธ Build an AI Agent That Pays For Its Own APIs

In 5 minutes. Zero API keys. USDC on Base. 500 free credits to start.

๐ŸŽ New here? Register in 10 seconds โ†’ get 500 free credits ($2.50 value). No wallet needed โ€” we create one for you.
Get 500 Free Credits โ†’

๐Ÿ“‹ What we'll build

  1. Register your agent wallet (10 seconds, 500 free credits)
  2. Call the gas price oracle โ€” Ethereum, Base, Arbitrum fees
  3. Scan a token for security risks โ€” honeypot check, rug pull detection
  4. Scrape a webpage โ€” fetch any URL as clean JSON
  5. Wire it into an AI agent loop โ€” Python + OpenAI example
  6. Go production with x402 โ€” Node.js, @x402/fetch, real USDC payments

1 Register โ€” Get 500 Free Credits

One command. We create a wallet, credit it with 500 free calls. No MetaMask, no USDC, no KYC.

curl -s -X POST https://minia2a.uk/api/v1/register-simple \
  -H "Content-Type: application/json" \
  -d '{"name":"my-first-agent"}'
{ "ok": true, "wallet": "0xf16F...94ECA", "privateKey": "0xabc123...", "credits": 500, "message": "500 free credits added. 1 credit = $0.005" }
โš ๏ธ Save the private key. It won't be shown again. Store it in .env or your secrets manager.

Now save your wallet address โ€” you'll use it in every call:

export MINIA2A_WALLET="0xf16F0882de08315B438E9f3a2Abfb2d2E5d94ECA"

2 Call the Gas Price Oracle

Every DeFi agent needs gas prices. Here's the one-liner:

curl "https://minia2a.uk/x402/gas?wallet=$MINIA2A_WALLET"
{ "ok": true, "gas": { "ethereum": { "baseFee": "12.5 gwei", "fast": 15, "instant": 20 }, "base": { "baseFee": "0.002 gwei", "fast": 0.003, "instant": 0.004 }, "arbitrum": { "baseFee": "0.01 gwei", "fast": 0.015, "instant": 0.02 } }, "timestamp": "2026-07-31T14:22:00Z" }
๐Ÿ’ก This one is free. Gas endpoint costs 0 credits. Try it immediately โ€” even without registering.

3 Scan a Token for Security Risks

Check any ERC-20 token for honeypots, rug pulls, and owner control. Costs 1 credit.

# Check USDC on Base (safe reference)
curl "https://minia2a.uk/x402/token-security?wallet=$MINIA2A_WALLET&address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"

# Check any token โ€” just swap the address
curl "https://minia2a.uk/x402/token-security?wallet=$MINIA2A_WALLET&address=0xYOUR_TOKEN_ADDRESS"
{ "ok": true, "verdict": "LOW_RISK", "honeypot": false, "ownerRenounced": false, "holderCount": 1850000, "liquidityUSD": 420000000, "risks": [] }

4 Scrape Any Webpage as JSON

Fetch and parse any URL. Costs 1 credit. Your agent never touches a browser.

curl "https://minia2a.uk/x402/web-scrape?wallet=$MINIA2A_WALLET&url=https://news.ycombinator.com"
{ "ok": true, "url": "https://news.ycombinator.com", "title": "Hacker News", "text": "1. Show HN: ...\n2. Why we switched from ...", "length": 4523 }

5 Wire It Into an AI Agent

Here's a complete Python agent that uses minia2a services as tools. It checks gas prices, scans tokens, and scrapes the web โ€” then uses OpenAI to reason about the results.

# agent.py โ€” A research agent that pays for its own API calls
import os, json, requests

WALLET = os.getenv("MINIA2A_WALLET")
BASE = "https://minia2a.uk"

def call_minia2a(endpoint, params=None):
    """Call any minia2a service. Credits auto-debited from wallet."""
    url = f"{BASE}/x402/{endpoint}"
    if params:
        url += "?" + "&".join(f"{k}={v}" for k,v in params.items())
    url += f"&wallet={WALLET}"
    return requests.get(url).json()

# Tool belt โ€” 170+ services available, here are 3
tools = {
    "gas_price": lambda: call_minia2a("gas"),
    "token_security": lambda addr: call_minia2a("token-security", {"address": addr}),
    "web_scrape": lambda url: call_minia2a("web-scrape", {"url": url}),
}

# Example: DeFi research agent
def research_token(token_address):
    """Research a token: security check + market context"""
    security = tools["token_security"](token_address)
    gas = tools["gas_price"]()

    print(f"Token: {token_address}")
    print(f"Verdict: {security.get('verdict', 'unknown')}")
    print(f"Honeypot: {security.get('honeypot', '?')}")
    print(f"Gas (Base): {gas.get('gas',{}).get('base',{}).get('fast','?')} gwei")

    # Now send to your LLM for reasoning:
    # llm.analyze(f"Token security report: {json.dumps(security)}")
    return security

if __name__ == "__main__":
    # Research USDC on Base
    research_token("0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913")
    print(f"\nCredits remaining: check with curl {BASE}/api/my-credits?wallet={WALLET}")

Run it:

export MINIA2A_WALLET="0xYOUR_WALLET"
pip install requests
python agent.py

6 Go Production โ€” Real x402 Payments

For production agents, use the @x402/fetch library. It auto-detects 402 responses, signs payments with your wallet, and retries. Your code never sees a payment โ€” it just works.

npm install @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);

const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{
    network: "eip155:8453",  // Base mainnet
    client: new ExactEvmScheme(account),
  }],
});

// Now use fetchWithPayment instead of fetch โ€” it handles 402 automatically!
const gas = await fetchWithPayment("https://minia2a.uk/x402/gas");
const security = await fetchWithPayment(
  "https://minia2a.uk/x402/token-security?address=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
);

console.log(await gas.json());
console.log(await security.json());
๐Ÿ”‘ How it works: Your agent calls โ†’ server returns HTTP 402 "Payment Required" โ†’ @x402/fetch auto-signs a USDC payment โ†’ retries with PAYMENT-SIGNATURE header โ†’ you get the result. One extra round trip (~200ms). All on Base L2.

๐Ÿš€ What's Next?

๐Ÿ“ก

Browse 170+ Services

$0.005โ€“$0.02 per call
Gas, tokens, captcha, DNS, email, scraping, sentiment, ENS, and more.
๐Ÿ”Œ

MCP Integration

1-line setup
Add minia2a to Claude Code, Cursor, or any MCP client. Your agent can call services directly.
๐Ÿ“˜

Agent Developer Guide

Full reference
Registration, payment flow, API catalog, error handling, rate limits.
๐Ÿ’ณ

Payment Setup

USDC on Base
How to fund your wallet, buy credits, and go from free trial to paid.
โœ… You now have a working agent that pays for its own APIs.
500 free credits = 50โ€“500 API calls. When they run out, send USDC on Base to top up.
How to buy credits โ†’