Filecoin Pin for ERC-8004 Agents
How to use the Filecoin Pin CLI with ERC-8004 autonomous agents
Overview
Example Code and Scripts
Why Filecoin Pin for Agent Storage?
Prerequisites
Required Tools
Required Tokens
Filecoin Calibration Testnet
Base Sepolia Testnet
ERC-8004 Registry Address
Step 1: Create Your Agent Card
Create the Agent Card JSON
Validate the JSON
Understanding the Agent Card Structure
Step 2: Upload to Filecoin Pin
Setup Payment System
Upload Your Agent Card
Save Important Values
Verify IPFS Retrieval
Step 3: Register on Base Sepolia
Set Environment Variables
Check Your Balance
Register the Agent
Get Your Agent ID
Verify Registration
View on Block Explorer

Step 4: Check On-chain Storage Proofs
Check PDP Proof Status
Summary
Step 5: Deploy on Mainnet
Required Tokens (Mainnet)
Filecoin Mainnet
Base Mainnet
ERC-8004 Registry Address (Base Mainnet)
Upload to Filecoin Mainnet
Setup Payment System (Mainnet)
Upload Your Agent Card (Mainnet)
Register on Base Mainnet
Set Environment Variables
Register the Agent
Verify Registration
Check Mainnet Storage Proofs
Troubleshooting
Issue: filecoin-pin: command not found
filecoin-pin: command not foundIssue: Insufficient USDFC
Insufficient USDFCIssue: Transaction reverted on Base Sepolia
Transaction reverted on Base SepoliaIssue: IPFS retrieval is slow or fails
Issue: PDP proofs not showing
Issue: Token URI doesn't include filename
What's Next?
Build Your Own Agent
Explore ERC-8004 Features
Join the Community
Sponsored Storage for ERC-8004 Builders
Additional Resources
Last updated