Overview
The ServiceProviderRegistry contract manages all storage providers in the ecosystem. It handles:- Provider registration and removal
- Product offerings (PDP, CDN, etc.)
- Provider metadata and capabilities
- Active/inactive status tracking
- Provider discovery and queries
Data Structures
Provider Info
Product Types
PDP Offering
Provider Registration
Register Provider
Update Provider Info
Remove Provider
Product Management
Add PDP Product
Update Product
Remove Product
Provider Queries
Get Provider by ID
Get Provider by Address
Get Multiple Providers
Get All Providers (Paginated)
Filter by Product Type
Provider Status
Check if Active
Check if Registered
Get Provider Count
Capabilities System
Capabilities are key-value metadata:Query by Capabilities
Events
ProviderRegistered
ProviderUpdated
ProductAdded
Listen for Events
Integration with Storage
Provider Discovery
Find by Region
Find by Feature
Find by Size Requirements
Best Practices
Use Capabilities
Add rich metadata via capabilities for discovery
Keep Updated
Update provider info when services change
Set Accurate Limits
Configure realistic min/max piece sizes
Monitor Status
Track active/inactive status changes
Source Code
SP Registry Contract
View the ServiceProviderRegistry contract source
Next Steps
Provider Registry Guide
Use the registry in your app
FWSS Contract
Learn how FWSS uses the registry