Skip to main content

Class: CollectionDataset<D>

NFT Collection Dataset

Type parameters

NameType
Dextends Dataset

Hierarchy

Methods

create

create(req): Promise<Collection>

Create NFT Collection.

Parameters

NameTypeDescription
reqBuild5Request<CreateCollectionRequest>Use Build5Request with data based on CreateCollectionRequest

Returns

Promise<Collection>


getAllAvailableLive

getAllAvailableLive(space, startAfter?): Observable<Collection[]>

Get all available collections per space. Real time stream.

Parameters

NameType
spacestring
startAfter?string

Returns

Observable<Collection[]>


getAllPendingLive

getAllPendingLive(space, startAfter?): Observable<Collection[]>

Get all pending collections per space. Real time stream.

Parameters

NameType
spacestring
startAfter?string

Returns

Observable<Collection[]>


getAllRejectedLive

getAllRejectedLive(space, startAfter?): Observable<Collection[]>

Get all rejected collections per space. Real time stream.

Parameters

NameType
spacestring
startAfter?string

Returns

Observable<Collection[]>


getAllUpdatedAfter

getAllUpdatedAfter(updatedAfter, startAfter?): Promise<Collection[]>

Get all records updated after unix timestamp.

Parameters

NameType
updatedAfternumber
startAfter?string

Returns

Promise<Collection[]>

Inherited from

DatasetClass.getAllUpdatedAfter


getAllUpdatedAfterLive

getAllUpdatedAfterLive(updatedAfter, startAfter?): Observable<Collection[]>

Get all records updated after unix timestamp. Real time stream.

Parameters

NameType
updatedAfternumber
startAfter?string

Returns

Observable<Collection[]>

Inherited from

DatasetClass.getAllUpdatedAfterLive


getByField

getByField(fieldName, fieldValue, startAfter?): Promise<Collection[]>

Get records by field.

Parameters

NameType
fieldNamestring | string[]
fieldValuestring | number | boolean | (string | number | boolean)[]
startAfter?string

Returns

Promise<Collection[]>

Inherited from

DatasetClass.getByField


getByFieldLive

getByFieldLive(fieldName, fieldValue, startAfter?): Observable<Collection[]>

Get records by field. Real time stream.

Parameters

NameType
fieldNamestring | string[]
fieldValuestring | number | boolean | (string | number | boolean)[]
startAfter?string

Returns

Observable<Collection[]>

Inherited from

DatasetClass.getByFieldLive


getBySpace

getBySpace(space, startAfter?): Promise<Collection[]>

Get records by space.

Parameters

NameType
spacestring
startAfter?string

Returns

Promise<Collection[]>

Inherited from

DatasetClass.getBySpace


getBySpaceLive

getBySpaceLive(space, startAfter?): Observable<Collection[]>

Get records by space. Real time stream.

Parameters

NameType
spacestring
startAfter?string

Returns

Observable<Collection[]>

Inherited from

DatasetClass.getBySpaceLive


getManyById

getManyById(setIds): Promise<Collection[]>

Get many records by id.

Parameters

NameType
setIdsstring[]

Returns

Promise<Collection[]>

Inherited from

DatasetClass.getManyById


getManyByIdLive

getManyByIdLive(setIds): Observable<Collection[]>

Get many records by id. Real time stream.

Parameters

NameType
setIdsstring[]

Returns

Observable<Collection[]>

Inherited from

DatasetClass.getManyByIdLive


id

id(setId): ExactDataSet<D, Collection>

Get specific record by id.

Parameters

NameType
setIdstring

Returns

ExactDataSet<D, Collection>

Inherited from

DatasetClass.id


mint

mint(req): Promise<Transaction>

Mint collection on defined network.

Parameters

NameTypeDescription
reqBuild5Request<CollectionMintRequest>Use Build5Request with data based on CollectionMintRequest

Returns

Promise<Transaction>


rank

rank(req): Promise<Rank>

Rank collection. This typically is managed by Rank Moderators.

Parameters

NameTypeDescription
reqBuild5Request<RankRequest>Use Build5Request with data based on RankRequest

Returns

Promise<Rank>


reject

reject(req): Promise<Collection>

Reject collection and hide it.

Parameters

NameTypeDescription
reqBuild5Request<RejectCollectionRequest>Use Build5Request with data based on RejectCollectionRequest

Returns

Promise<Collection>


update

update(req): Promise<Collection>

Update NFT Collection.

Parameters

NameTypeDescription
reqBuild5Request<UpdateCollectionRequest>Use Build5Request with data based on UpdateCollectionRequest

Returns

Promise<Collection>


updateMinted

updateMinted(req): Promise<Collection>

Update minted NFT Collection. Only certain fields are updated (typically those that are not immutable and stored on DLT)

Parameters

NameTypeDescription
reqBuild5Request<UpdateCollectionRequest>Use Build5Request with data based on UpdateCollectionRequest

Returns

Promise<Collection>


vote

vote(req): Promise<Vote>

Give collection a vote up or down.

Parameters

NameTypeDescription
reqBuild5Request<VoteRequest>Use Build5Request with data based on VoteRequest

Returns

Promise<Vote>