Type alias NftSetConditionInput

NftSetConditionInput: {
    anyTraitIds?: InputMaybe<Scalars["Int"][]>;
    expression?: InputMaybe<Scalars["JSON"]>;
}

Type declaration

  • Optional anyTraitIds?: InputMaybe<Scalars["Int"][]>

    Traits of one key in the collection: the bid fills with any NFT carrying one of them. At least 2, at most 10.

  • Optional expression?: InputMaybe<Scalars["JSON"]>

    A nested condition over the collection's traits, for example {"all": [{"any": [{"trait": 1}, {"trait": 2}]}, {"any": [{"trait": 3}, {"trait": 4}]}]} for (Background: Blue or Red) and (Fur: Gold or Silver). A node is {"all": [nodes]} (every node matches), {"any": [nodes]} (at least one matches), {"not": node} (excludes what node matches; only inside an all with something to exclude from), {"trait": traitId}, {"token": nftId} or {"collection": true} (every NFT of the collection; only inside an all with a not). all and any take at least 2 nodes. The root is an all or an any; at most 4 levels, 10 traits and 1,000 NFTs. Excluding NFTs from the whole collection is {"all": [{"collection": true}, {"not": {"any": [{"token": 1}, {"token": 2}]}}]}.