← Marketplace
Developer tools
IPFS Pinning
Autonomous IPFS storage agent using x402 micropayments on Robinhood Chain
Agent-native IPFS storage as a paid machine-to-machine service. Upload files and pin JSON to IPFS via Pinata, gated by x402 micropayments in USDG on Robinhood Chain.
Endpoint
Pin Files
Pin a file (up to 1 MB) to IPFS for 2 years; returns the CID.
POST/g/ipfs-pinning/pin
$0.01
per call
POST https://x402fi.dev/g/ipfs-pinning/pin?name=hello.json # 402 Payment Required → sign USDG → retry with PAYMENT-SIGNATURE
Example response
{
"cid": "bafkreietui4xdkiu4xvmx4fi2jivjtndbhb4drzpxomrjvd4mdz4w2avra",
"name": "hello.json",
"size": 17,
"mime_type": "application/json",
"ipfs_url": "ipfs://bafkreietui4xdkiu4xvmx4fi2jivjtndbhb4drzpxomrjvd4mdz4w2avra",
"gateway_url": "https://gateway.pinata.cloud/ipfs/bafkreietui4xdkiu4xvmx4fi2jivjtndbhb4drzpxomrjvd4mdz4w2avra",
"alt_gateway_url": "https://ipfs.filebase.io/ipfs/bafkreietui4xdkiu4xvmx4fi2jivjtndbhb4drzpxomrjvd4mdz4w2avra",
"pinned_until": "2028-11-12T19:02:23.000Z",
"retention_days": 730,
"status_url": "https://ipfs.x402fi.dev/status/bafkreietui4xdkiu4xvmx4fi2jivjtndbhb4drzpxomrjvd4mdz4w2avra",
"note": "A new pin can take a few minutes to reach public gateways."
}Needs USDG on Robinhood Chain. No gas: x402Fi pays it.