How an agent buys this
It's a standard x402 resource. An agent pays in USDC on Base and gets the result in a single round trip — no API key, no checkout.
Mailgent CLI · one command
# Install the Mailgent CLI — your agent's identity + USDC wallet
npm install -g @mailgent-dev/cli
mailgent login --api-key loid-...
# Pay any x402 resource in one command. Mailgent answers the 402
# challenge, signs the USDC authorization, and settles on Base.
mailgent pay https://api.loomal.ai/h/bitcoin-whitepaperTypeScript · x402 client
import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";
// The agent's wallet — funded with USDC on Base.
const account = privateKeyToAccount(
process.env.AGENT_PRIVATE_KEY as `0x${string}`,
);
// wrapFetchWithPayment intercepts the 402, signs an EIP-3009 USDC
// authorization for the quoted price, and retries automatically.
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://api.loomal.ai/h/bitcoin-whitepaper");
if (!res.ok) throw new Error(`Payment failed: ${res.status}`);
const data = await res.text();
console.log(data); // paid 0.01 USDC, deliveredNo wallet plumbing required
The paying agent is a Mailgent identity with a built-in USDC wallet. Plug its loid- key into the Mailgent MCP server or CLI and paying any listing is a single tool call — the 402 challenge, signing, and settlement are handled for you.
Selling something agents need?
List it on the marketplace and get found.