Skip to content

@props-labs/fuelsDocs


@props-labs/fuels / CollectionManager

Class: CollectionManager

CollectionManager

Classdesc

Manages collections within the Props SDK on the Fuel network.

Extends

  • PropsContractManager

Constructors

new CollectionManager()

new CollectionManager(): CollectionManager

Creates a new instance of the CollectionManager class.

Returns

CollectionManager

Overrides

PropsContractManager.constructor

Defined in

collection/collection-manager.ts:23

Properties

events

events: PropsEvents

Inherited from

PropsContractManager.events

Defined in

contract/contract-manager.ts:8

Methods

create()

create(params): Promise<Collection>

Creates a new collection.

Parameters

params: CollectionCreateOptions

Additional configuration options for creating the collection.

Returns

Promise<Collection>

A promise that resolves to the ID of the created collection.

Defined in

collection/collection-manager.ts:33


emit()

emit(event, ...args): void

Parameters

event: string

• ...args: any[]

Returns

void

Inherited from

PropsContractManager.emit

Defined in

core/events.ts:102


get()

get(collectionId, owner): Promise<Collection>

Gets the details of a specific collection.

Parameters

collectionId: string

The ID of the collection to retrieve.

owner: Account

The account that owns the collection.

Returns

Promise<Collection>

A promise that resolves to the collection object.

Defined in

collection/collection-manager.ts:244


list()

list(owner, network): Promise<Collection[]>

Parameters

owner: Account

network: Network = defaultNetwork

Returns

Promise<Collection[]>

Defined in

collection/collection-manager.ts:138


on()

on(event, listener): void

Parameters

event: string

listener

Returns

void

Inherited from

PropsContractManager.on

Defined in

core/events.ts:95


removeAllListeners()

removeAllListeners(event?): void

Parameters

event?: string

Returns

void

Inherited from

PropsContractManager.removeAllListeners

Defined in

core/events.ts:116


removeListener()

removeListener(event, listener): void

Parameters

event: string

listener

Returns

void

Inherited from

PropsContractManager.removeListener

Defined in

core/events.ts:108