@textile/hub > Buckets > defaultArchiveConfig
Buckets.defaultArchiveConfig() method
This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
(Experimental) Get the current default ArchiveConfig for the specified Bucket.
Signature:
defaultArchiveConfig(key: string): Promise<ArchiveConfig>;
Parameters
Parameter | Type | Description |
---|---|---|
key | string | Unique (IPNS compatible) identifier key for a bucket. |
Returns:
Promise<ArchiveConfig>
The default ArchiveConfig for the specified Bucket.
Example
Get the default ArchiveConfig
import { Buckets } from '@textile/hub'
async function getDefaultConfig (buckets: Buckets, key: string) {
const defaultConfig = await buckets.defaultArchiveConfig(key)
}