Request parameters for searchStacks operation in MetadataSearchApi.

SearchStacksRequest

interface SearchStacksRequestParams {
    chainName: string;
    contractAddress: string[];
    accountAddress?: string;
    onlyIncludeOwnerListings?: boolean;
    onlyIfHasActiveListings?: boolean;
    traits?: string;
    keyword?: string;
    sortBy?: CheapestFirst;
    pageSize?: number;
    pageCursor?: string;
}

Properties

chainName: string

The name of chain

SearchStacks

contractAddress: string[]

List of contract addresses to filter by

SearchStacks

accountAddress?: string

Account address to filter by

SearchStacks

onlyIncludeOwnerListings?: boolean

Whether to the listings should include only the owner created listings

SearchStacks

onlyIfHasActiveListings?: boolean

Filters results to include only stacks that have a current active listing. False and 'null' return all unfiltered stacks.

SearchStacks

traits?: string

JSON encoded traits to filter by. e.g. encodeURIComponent(JSON.stringify({"rarity": {"values": ["common", "rare"], "condition": "eq"}}))

SearchStacks

keyword?: string

Keyword to search NFT name and description. Alphanumeric characters only.

SearchStacks

sortBy?: CheapestFirst

Sort results in a specific order

SearchStacks

pageSize?: number

Number of results to return per page

SearchStacks

pageCursor?: string

Encoded page cursor to retrieve previous or next page. Use the value returned in the response.

SearchStacks