Pay-per-access IPFS content retrieval via x402 on Pinata gateway (Base Sepolia testnet)
What it does
This endpoint provides gated access to IPFS-pinned content hosted on Pinata's x402 test gateway. When a caller requests the resource without payment, the endpoint returns an HTTP 402 challenge specifying the payment terms. Upon submitting a valid `x-payment` header with a signed EIP-712 payment authorization, the endpoint serves the underlying content (identified by its IPFS CID `bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y`).
The payment scheme is "exact" on the Base Sepolia testnet, accepting USDC (contract `0x036CbD53842c5426634e7929541eC2318f3dCF7e`) with a maximum amount of 1,000,000 units (1 USDC at 6 decimals). The payment is directed to address `0x941f29fddA2CB16649b70D1C28aA5933DBba6295` with a 60-second timeout window. The returned content type is `text/plain; charset=UTF-8`.
This appears to be a demonstration or test deployment of the x402 protocol on Pinata's IPFS gateway infrastructure. The Base Sepolia network is an Ethereum testnet, so no real funds are required. No additional documentation, OpenAPI spec, or landing page was found on the host — all crawled paths returned error messages indicating missing or invalid CIDs. The endpoint itself is live and correctly returns the x402 challenge.
Capabilities
Use cases
- —Paying to retrieve gated IPFS-pinned content via an agent
- —Testing x402 payment flows against a live testnet endpoint
- —Demonstrating pay-per-access content delivery over IPFS
Fit
Best for
- —Developers testing x402 protocol integrations
- —Agents that need to programmatically pay for and retrieve IPFS content
- —Experimenting with crypto-native content paywalls on testnets
Not for
- —Production content delivery requiring mainnet payments
- —Retrieving content that is not pinned behind this specific CID
- —High-throughput or bulk IPFS downloads
Quick start
curl -X GET \
https://x402-test.mypinata.cloud/x402/cid/bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y \
-H 'x-payment: <signed-x402-payment-token>'Example
Response
{
"error": "Provide a valid x-payment header to access this content",
"accepts": [
{
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"extra": {
"name": "USDC",
"version": "2"
},
"payTo": "0x941f29fddA2CB16649b70D1C28aA5933DBba6295",
"scheme": "exact",
"network": "base-sepolia",
"mimeType": "text/plain; charset=UTF-8",
"resource": "https://x402-test.mypinata.cloud/x402/cid/bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y",
"description": "Payment for demo content access",
"maxAmountRequired": "1000000",
"maxTimeoutSeconds": 60
}
],
"x402Version": 1
}Endpoint
Quality
The x402 challenge is live and well-formed with clear payment parameters, but there is no documentation, no OpenAPI spec, and all crawled pages return errors. This is a testnet demo endpoint with minimal surrounding context, so many details are inferred from the challenge payload alone.
Warnings
- —Testnet only (Base Sepolia) — not suitable for production use with real funds
- —No documentation or OpenAPI spec found on the host
- —All non-CID paths on the host return error responses
- —Content behind the CID is unverified demo content
Citations
- —Endpoint returns HTTP 402 with x402 version 1 challenge on Base Sepolia accepting USDChttps://x402-test.mypinata.cloud/x402/cid/bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y
- —Payment amount is 1000000 units of USDC (contract 0x036CbD53842c5426634e7929541eC2318f3dCF7e)https://x402-test.mypinata.cloud/x402/cid/bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y
- —Content MIME type is text/plain; charset=UTF-8https://x402-test.mypinata.cloud/x402/cid/bafkreihe3eqd6gelnifzr73mxpggeucwo7dmyea6xlpkbfqwudlmkdte2y