Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > ArchiveConfig

ArchiveConfig interface

ArchiveConfig is the desired state of a Cid in the Filecoin network.

Signature:

export interface ArchiveConfig 

Properties

PropertyTypeDescription
countryCodesArray<string>CountryCodes (ignored in Filecoin testnet) indicates that new deals should select miners on specific countries.
dealMinDurationnumberDealMinDuration indicates the duration to be used when making new deals.
dealStartOffsetnumberDealStartOffset indicates how many epochs in the future impose a deadline to new deals being active on-chain. This value might influence if miners accept deals, since they should seal fast enough to satisfy this constraint.
excludedMinersArray<string>ExcludedMiners (ignored in Filecoin testnet) is a set of miner addresses won't be ever be selected when making new deals, even if they comply to other filters.
fastRetrievalbooleanFastRetrieval indicates that created deals should enable the fast retrieval feature.
maxPricenumberMaxPrice is the maximum price that will be spent to store the data, 0 is no max
renew?ArchiveRenew(Optional) Renew indicates deal-renewal configuration.
repFactornumberRepFactor (ignored in Filecoin testnet) indicates the desired amount of active deals with different miners to store the data. While making deals the other attributes of FilConfig are considered for miner selection.
trustedMinersArray<string>TrustedMiners (ignored in Filecoin testnet) is a set of miner addresses which will be forcibly used when making new deals. An empty/nil list disables this feature.
verifiedDealbooleanVerifiedDeal indicates that new deals will be verified-deals, using available datacap from the wallet address.
  • ArchiveConfig interface
  • Properties
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio