Pack.getAll() method
Get All Packs
Example
const packs = await contract.getAll();
console.log(packs;
Signature:
getAll(queryParams?: QueryAllParams): Promise<NFT[]>;
Parameters
Parameter | Type | Description |
---|---|---|
queryParams | QueryAllParams | (Optional) optional filtering to only fetch a subset of results. |
Returns:
Promise<NFT[]>
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.