402
HTTP status code
~800ms
Solana finality
$0.00025
avg tx fee
0
accounts needed
0 human approvals required

Autonomous agents that pay their own way

LLM-powered agents browse, reason, and act - but today they can't pay for the premium data they need without a human handing them an API key. HTTP 402 closes that gap. Each agent session generates an ephemeral Solana keypair, funds it, and pays per query. No accounts. No billing dashboard. No key rotation.

Flow
01Agent receives a task from user
02Calls mppFetch() - no setup needed
03SDK auto-generates ephemeral keypair
04Faucet airdrops SOL (devnet/testnet)
05Server returns 402 with price
06SDK pays, retries, returns data
07Agent processes result, task complete
import { mppFetch } from "mpp-test-sdk";

// Research agent - pays for every query autonomously
async function researchAgent(topic: string) {
  // No API key. No pre-registration. Just fetch.
  const context = await mppFetch(
    `https://api.research.io/v1/search?q=${topic}`
  );

  const facts = await mppFetch(
    "https://api.factcheck.io/v1/verify",
    { method: "POST", body: JSON.stringify(await context.json()) }
  );

  // SDK paid 0.001 SOL per call. Agent never knew.
  return facts.json();
}