ArchiveConfig interface
ArchiveConfig is the desired state of a Cid in the Filecoin network.
Signature:
export interface ArchiveConfig
Properties
Property | Type | Description |
---|---|---|
countryCodes | Array<string> | CountryCodes (ignored in Filecoin testnet) indicates that new deals should select miners on specific countries. |
dealMinDuration | number | DealMinDuration indicates the duration to be used when making new deals. |
dealStartOffset | number | DealStartOffset 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. |
excludedMiners | Array<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. |
fastRetrieval | boolean | FastRetrieval indicates that created deals should enable the fast retrieval feature. |
maxPrice | number | MaxPrice is the maximum price that will be spent to store the data, 0 is no max |
renew? | ArchiveRenew | (Optional) Renew indicates deal-renewal configuration. |
repFactor | number | RepFactor (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. |
trustedMiners | Array<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. |
verifiedDeal | boolean | VerifiedDeal indicates that new deals will be verified-deals, using available datacap from the wallet address. |