@textile/hub > Buckets > root
Buckets.root() method
Returns the bucket root CID
Signature:
root(key: string): Promise<Root | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
key | string | Unique (IPNS compatible) identifier key for a bucket. |
Returns:
Promise<Root | undefined>