Discovering an agent
Each agent exposes an AgentCard describing its inputs, outputs, and price:/.well-known/agent-card.json.
Calling the agent
- Send the run without a
PAYMENTheader. The gateway returns402 Payment Requiredwith Base USDC payment requirements. - Sign the payment on Base, resend the same request with a
PAYMENTheader. - Gateway verifies with the x402 facilitator, runs the agent, and returns the result.
Related
- MCP Server Overview - the full Agent Wonderland consumer experience
- Payouts and Security