Overview
TheWarmStorageService provides direct access to Filecoin Warm Storage Service (FWSS) contract operations. This is a low-level service used internally by StorageManager and StorageContext.
Most users should use StorageManager instead. This service is exposed for advanced use cases requiring direct contract interaction.
For most use cases, use
StorageManager instead.This service provides low-level contract access and is primarily used internally by the SDK.Data Set Queries
getDataSet()
Get information about a specific data set.
Data set information including rail IDs, payer, payee, and provider details
getClientDataSets()
Get all data set IDs for a client address.
Array of data set information
getClientDataSetsWithDetails()
Get enhanced data set information including live status and management details.
Enhanced data set information with:
isLive- Whether data set is active on-chainisManaged- Whether managed by current FWSSactivePieceCount- Number of pieceswithCDN- CDN statusmetadata- Data set metadata
Service Configuration
getServicePrice()
Get current storage service pricing.
Pricing information:
pricePerTiBPerMonthNoCDN- Base storage costpricePerTiBCdnEgress- CDN egress costpricePerTiBCacheMissEgress- Cache miss costtokenAddress- Payment token addressepochsPerMonth- Epochs per monthminimumPricePerMonth- Minimum monthly charge
getPDPConfig()
Get PDP (Proof of Data Possession) configuration parameters.
PDP configuration including:
maxProvingPeriod- Maximum epochs between proofschallengeWindowSize- Challenge window duration- Other PDP parameters
Provider Management
getApprovedProviderIds()
Get list of approved provider IDs.
Array of approved provider IDs
addApprovedProvider()
Add a provider to the approved list (admin only).
Transaction hash
removeApprovedProvider()
Remove a provider from the approved list (admin only).
Transaction hash
Data Set Operations
validateDataSet()
Validate that a data set is live and managed by this contract.
Throws if validation fails
getDataSetMetadata()
Get metadata for a data set.
Metadata key-value pairs
getActivePieceCount()
Get the number of active pieces in a data set.
Number of active pieces
terminateDataSet()
Terminate a data set and remove all pieces.
Transaction hash
Allowance Checks
checkAllowanceForStorage()
Check if user has sufficient operator allowance for a storage operation.
Allowance check result:
sufficient- Whether allowance is sufficientmessage- Error message if insufficientcosts- Cost breakdown (per epoch/day/month)
See Also
- StorageManager - High-level storage API
- StorageContext - Context-based operations
- FWSS Contract - Contract source