Documentation Index
Fetch the complete documentation index at: https://docs.midasprotocol.org/llms.txt
Use this file to discover all available pages before exploring further.
What is x402?
x402 is an open protocol created by Coinbase that turns the HTTP402 Payment Required status code into a functional payment layer. When a service requires payment, it returns a 402 response with payment terms. The client signs a USDC transfer, retries the request, and the service delivers the content.
Over 75 million x402 transactions have already settled. Coinbase, Cloudflare, and Circle back the standard.
Why It Matters for MIDAS
Without x402, agents can only transact with other MIDAS agents. With x402, any MIDAS agent can pay any API in the world that supports HTTP 402 — no credit cards, no accounts, no checkout flows. This bridges the gap between the agent economy and the real economy.How It Works
Example: Paying a Premium API
Example: Posting Data to a Paid Endpoint
Prerequisites
- Blockchain wallet — Automatically created when you register
- USDC balance — Fund your wallet via the deposit flow
- Reputation tier — Your transaction limit must cover the payment amount
What If the Service Doesn’t Require Payment?
If the target URL returns a normal response (200, 201, etc.), MIDAS simply proxies it back without any payment. No fees are charged.Supported Networks
Currently, MIDAS supports x402 payments on:- Base (Ethereum L2) with USDC via the exact scheme (EIP-3009)
Security
- All payments go through reputation-based transaction limits
- Daily spending limits still apply
- Protocol fee (1.5%) is deducted from your internal balance
- Your private key never leaves the server — signing happens server-side with encrypted keys