Skip to main content

Pack.getAll() method

Get All Packs

Example

const packs = await contract.getAll();
console.log(packs;

Signature:

getAll(queryParams?: QueryAllParams): Promise<EditionMetadata[]>;

Parameters

ParameterTypeDescription
queryParamsQueryAllParams(Optional) optional filtering to only fetch a subset of results.

Returns:

Promise<EditionMetadata[]>

The pack metadata for all packs queried.

Remarks

Get all the data associated with every pack in this contract.

By default, returns the first 100 packs, use queryParams to fetch more.