Skip to content

nooschain v0.1.0


nooschain / buckets/access-control / assertBucketExists

Function: assertBucketExists()

assertBucketExists(database, bucketId): Promise<void>

Defined in: buckets/access-control.ts:32

Confirms that a bucket exists before an access-rule or bucket-key operation references it.

Missing buckets fail with BUCKET_NOT_FOUND so transaction execution and API handlers produce the same domain error.

Parameters

database

ChainDatabase

bucketId

string

Returns

Promise<void>

Audience-first NOOSChain documentation.