1,856 x402 agent microservices in one package. CAPTCHA solving, gas prices, token data, web scraping, AI summarization. Pay-per-call USDC on Base. No API keys.
Direct download: minia2a.js (Node/CommonJS, 43 functions) · minia2a.d.ts (TypeScript types)
import { captchaSolve, gasPrice, dexPrice } from '/sdk/minia2a.js?v=20261018';
// Solve a CAPTCHA
const { token } = await captchaSolve({
sitekey: '6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI',
url: 'https://example.com'
});
// Gas prices across 5 chains
const gas = await gasPrice();
console.log(gas.base.gwei, 'gwei on Base');
// Token price
const price = await dexPrice({
chain: 'base',
address: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
});
Prices are read live from the catalog and shown in the table below — each call answers 402 with the exact amount before anything is charged.
import { useTrial, time } from '/sdk/minia2a.js?v=20261018';
// Node: ethers is lazy-loaded; a browser can pass { wallet, signer } instead.
await useTrial({ privateKey: process.env.WALLET_KEY });
const now = await time(); // 5 free calls per wallet, no registration
console.log(now.utc);
Every catalog call then carries ?wallet=, X-Wallet-Signature (EIP-191 over minia2a trial:<wallet>:<catalogId>:<unixSeconds>) and X-Trial-Timestamp. The catalog id is resolved for you — the SDK signs x402-time, not the URL slug time. After five accepted calls the 402 comes back; that is the trial ending. Payment-only endpoints and off-domain catalog entries are left untouched.
All endpoints use x402 — the standard agent payment protocol. Three options:
useTrial({ privateKey })x402 error with payment details| Category | Function | Price (live) |
|---|---|---|
| CAPTCHA | captchaSolve({ sitekey, url, type? }) | … |
| Crypto Data | gasPrice() · dexPrice() · tokenSearch() · walletIntel() · polymarket() · feeHistory() | … |
| Web | fetchPage({ url }) · webRetrieve({ url, question }) | … |
| AI | summarize({ text }) | … |
| Utilities | uuid() · base64() · hash() · time() · ipLookup() · dnsLookup() + 8 more | … |
| Agent Tools | bounties() · search() · recall() · find() · store() · erc8004Agent() | … |
emailCreate() · emailVerify() | … | |
| Catalog | call(id) · discover(q) · listServices() | free |
Prices are read live from the catalog; every call answers 402 with the exact amount first.
Full catalog: listServices(). Search: discover('gas'). Stats: stats(). JSON catalog
Use minia2a from Claude Desktop or any MCP client. 10 tools, x402 auto-payment.
# Add to claude_desktop_config.json:
{
"mcpServers": {
"minia2a": {
"command": "node",
"args": ["~/.minia2a/minia2a-mcp.js"],
"env": { "MINIA2A_PRIVATE_KEY": "your-base-private-key" }
}
}
}