Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > Buckets > archives

Buckets.archives() 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.

archives returns the curent and historical archives for a Bucket.

Signature:

archives(key: string): Promise<Archives>;

Parameters

ParameterTypeDescription
keystringUnique (IPNS compatible) identifier key for a bucket.

Returns:

Promise<Archives>

Example

Get current and historical archives

import { Buckets } from '@textile/hub'

async function status (buckets: Buckets, key: string) {
   const { current, history } = await buckets.archives(key)
}

  • Buckets.archives() method
  • Parameters
  • Example
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio