Documentation Index
Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt
Use this file to discover all available pages before exploring further.
Choose between x402 and MPP
Both protocols achieve the same result: an agent pays for API access, the server verifies, work is done, results are stored. The choice of protocol depends on the agent’s wallet type, the chain it uses, and whether session payments are needed.Decision table
| If you need… | x402 | MPP | Recommendation |
|---|---|---|---|
| Base chain (USDC) | ✓ | — | x402 |
| Tempo chain (USDC.e) | — | ✓ | MPP |
| Off-chain signing (no gas for agent) | ✓ | — | x402 |
| On-chain settlement first | — | ✓ | MPP |
| Session payments | — | ✓ | MPP |
| Maximum agent compatibility | ✓ | ✓ | Dual-protocol |
| Simple one-off request | ✓ | ✓ | Either |
| Coinbase AgentKit | ✓ | — | x402 |
| Tempo-native agent | — | ✓ | MPP |
Protocol comparison
| x402 | MPP | |
|---|---|---|
| Chain | Base | Tempo |
| Token | USDC | USDC.e |
| Agent signs | Off-chain ERC-3009 (no gas) | On-chain transaction (gas cost) |
| Settlement timing | Async (server submits after response) | Sync (agent submits before request) |
| Challenge header | PAYMENT-REQUIRED | WWW-Authenticate |
| Credential header | PAYMENT-SIGNATURE | Authorization: Payment |
| Session payments | No | Yes |
| Standard | x402 Foundation | IETF Internet Draft |
For developers: use dual-protocol
As a developer building an API, use dual-protocol (the default). You don’t need to pick — your endpoint accepts both. The agent picks the protocol that matches its wallet.For agents: picking the right protocol
An agent picks a protocol based on which challenge headers it can process and which wallet it has:Why Prudra defaults to dual-protocol
The agent payment ecosystem is young and fragmented. Some agents support x402, some MPP, some both. A server that only supports one protocol excludes agents that can only use the other. Dual-protocol eliminates this fragmentation problem for the developer. The challenge generation overhead is negligible — both challenges are built in one atomic call. The benefit (full agent compatibility) far outweighs the cost (a second header in the 402 response).Related
- Dual-protocol overview — how both challenges fit in one response
- How challenges are built — atomic challenge generation
- x402 overview — x402 in depth
- MPP overview — MPP in depth

