Type Alias AssetSearchFilters

AssetSearchFilters: {
    attributes?: AssetAttributeSearch[];
    bestPriceByTraitType?: string;
    contractAddress: string;
    direction?: FilterDirection;
    isOnSale?: boolean;
    limit?: number;
    name?: string;
    orderBy?: FilterOrderBy;
    orderByTraitType?: string;
    owner?: string;
    skip?: number;
    tokenIds?: string[];
}

Type declaration

  • Optionalattributes?: AssetAttributeSearch[]

    Attributes to filter the assets. Elements in the list are an OR filter. Inside each element, attribute types are combined to form an AND filter. Attribute values are a list of possible values for a precise attribute type. Minimum length of 1.

  • OptionalbestPriceByTraitType?: string

    If this field is defined, instead of sending back all the assets matching the filters, the results contains only the best asset for each value of the defined trait type.

  • contractAddress: string

    The contract address of the asset.

  • Optionaldirection?: FilterDirection
  • OptionalisOnSale?: boolean

    Filter assets that are on sale.

  • Optionallimit?: number

    Limit the number of returned assets. If 0 or less, then no limit is applied.

  • Optionalname?: string

    The name of the asset as defined in the metadata. It will check that this value is contained in the name. It is case insensitive.

  • OptionalorderBy?: FilterOrderBy
  • OptionalorderByTraitType?: string

    When orderBy is set to sort by attribute. Then this field is required and used to specify which trait to use when sorting assets.

  • Optionalowner?: string

    The owner address of the asset.

  • Optionalskip?: number

    Skip a specific number of entries in the asset list.

  • OptionaltokenIds?: string[]