Prerequisites
- A wallet with USDC on the Tempo network (chain ID 4217)
- One of the following:
- Tempo CLI installed
mppxclient SDK (npm install mppx viem)
Using the Tempo CLI
The simplest way to interact with the MPP Server.Upload a File
Download a File
Using the mppx SDK
For programmatic access in TypeScript/JavaScript applications.Install Dependencies
Upload a File
Download a File
How the Payment Flow Works
When using themppx SDK or Tempo CLI, the 402 payment flow is handled automatically. Here’s what happens under the hood:
Error Handling
| Status | Meaning |
|---|---|
400 | Missing or invalid fileSize query parameter |
402 | Payment required — include payment proof in Authorization header |
404 | File not found on IPFS (download only) |
Next Steps
- Self-Hosting — Deploy your own MPP Server instance
- x402 Monetization — Monetize private IPFS content with x402