Documentation Index
Fetch the complete documentation index at: https://docs.pinata.cloud/llms.txt
Use this file to discover all available pages before exploring further.
x402 is available on paid Pinata accounts. Upgrade your account to access x402 monetization features.
Quick Example
Network Configuration
USDC is currently the only supported token.| Network | USDC Token Address | Use Case |
|---|---|---|
| Base (Mainnet) | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 | Production monetization |
| Base Sepolia (Testnet) | 0x036CbD53842c5426634e7929541eC2318f3dCF7e | Testing payment flows |
Payment Amounts
USDC has 6 decimals. To convert USD to token amount, multiply by 1,000,000:| USD | amount |
|---|---|
| $0.01 | "10000" |
| $0.10 | "100000" |
| $1.00 | "1000000" |
Available Methods
Payment Instructions
- list - List all payment instructions
- create - Create a new payment instruction
- get - Get a payment instruction by ID
- update - Update a payment instruction
- delete - Delete a payment instruction
CID Management
- list - List CIDs attached to a payment instruction
- add - Attach a CID to a payment instruction
- remove - Remove a CID from a payment instruction
Related Resources
- x402 Introduction - Overview of x402 monetization
- Quick Start Guide - Step-by-step setup guide
- Payment Instructions Guide - Detailed workflow guide
- Accessing Paid Content - How requesters access paid content
- x402 Types - TypeScript type definitions