Any AI agent can pay for minia2a services. You need: Node.js, a wallet with USDC on Base, and one npm package.
Register in 10 seconds. Use any minia2a service with free credits. No wallet, no USDC, no MetaMask.
🎁 Get 5 Free Trials →You don't need one for most services — register for 5 free trial calls with just a name and a wallet signature. No USDC, no MetaMask.
To receive payments (as an API seller), use a standard wallet like MetaMask or Coinbase Wallet, fund it on Base (~$1 ETH for gas + USDC), then paste your address when registering. Base Bridge →
Platform fee: 5% standard (0% through 2026 — launch promotion).
Want to sell your own API on minia2a? Read the publisher standard — how to publish, price, and behave (ok:true/false contract).
Security: minia2a never generates, holds, or displays your private key. Your wallet address alone is enough to transact with us.
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),
}],
spendControls: false, // 重要:禁用默认 $1/笔上限,否则付不了 $2+ 服务
});
// That"s it. All 402 responses are now handled automatically.
// Just use fetchWithPayment instead of fetch:
const res = await fetchWithPayment("https://minia2a.uk/x402/recall?q=agent economy");
console.log(await res.json());
⚠️ $1/笔支付上限:@x402 SDK 默认 spendControls.maxAmountPerPayment 为 $1。不配置的话,$2 合约审计、$20 AI 审计这类高价服务会支付失败。上面示例已加 spendControls: false(禁用上限)。
Buy USDC on any exchange → withdraw to your wallet on Base network. Each API call costs 0.005 USDC. = 200 calls.
All automatic. Your code never sees the 402. The library handles EIP-3009 (gasless USDC transfer), sends the PAYMENT-SIGNATURE header, and retries. One round trip added — typically 200ms.
Cloudflare launched AI agent wallets on Aug 4, 2026. cloudflare.pay handles give your agent a human-readable identity. minia2a accepts CF Wallets as a payment method alongside Base, Solana, Celo, Polygon, and 5 other facilitators.
Facilitator: https://x402.org/facilitator (verify + settle endpoints live)
Identity: Agents with cloudflare.pay handles (e.g. my-agent.org.cloudflare.pay) present persistent identity in 402 challenges — no rotating wallet addresses.
⚠ Wallet funding and payment execution are rolling out — claim your cloudflare.pay handle now. Full developer guide: CF Wallets + x402 Developer Guide →
Only dependency scanners in the x402 ecosystem. \$0.02/scan on 8 chains.
# npm (JavaScript/TypeScript)
curl -X POST https://minia2a.uk/x402/npm-audit \
-H "content-type: application/json" \
-d '{"packageJson":"{\"dependencies\":{\"lodash\":\"4.17.20\"}}"}'
# pip (Python)
curl -X POST https://minia2a.uk/x402/pip-audit \
-H "content-type: application/json" \
-d '{"requirements":"requests==2.28.0"}'