> ## Documentation Index
> Fetch the complete documentation index at: https://docs.radiant.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Filters

## Supported Filters

### Minter

Query wallets that minted a specific NFT.

<CodeGroup>
  ```typescript query.ts theme={null}
  const query = {
      "type": "minter",
      "chain": "ethereum",
      "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
      "minAmount": "1"
  }
  ```

  ```typescript minter.type.ts theme={null}
  interface minter {
    type: 'minter';
    chain: 'ethereum' | 'polygon';
    contractAddress: address;
    minAmount: number;
    maxAmount?: number;
  }
  ```
</CodeGroup>

### Holder

Query wallets that hold a specific NFT or Token.

<CodeGroup>
  ```typescript query.ts theme={null}
  const query = {
      "type": "holder",
      "chain": "ethereum",
      "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
      "minAmount": "1"
  }
  ```

  ```typescript holder.type.ts theme={null}
  interface holder {
    type: 'holder';
    chain: 'ethereum' | 'polygon';
    contractAddress: address;
    minAmount: number;
    maxAmount?: number;
    traits?: traits[];
  }
  ```
</CodeGroup>

### Seller

Query wallets that sold a specific NFT.

<CodeGroup>
  ```typescript query.ts theme={null}
  const query = {
      "type": "seller",
      "chain": "ethereum",
      "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
      "minAmount": "1"
  }
  ```

  ```typescript seller.type.ts theme={null}
  interface seller {
    type: 'seller';
    chain: 'ethereum' | 'polygon';
    contractAddress: address;
    minAmount: number;
    maxAmount?: number;
  }
  ```
</CodeGroup>

### Buyer

Query wallets that sold a specific NFT.

<CodeGroup>
  ```typescript query.ts theme={null}
  const query = {
      "type": "buyer",
      "chain": "ethereum",
      "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
      "minAmount": "1"
  }
  ```

  ```typescript buyer.type.ts theme={null}
  interface buyer {
    type: 'buyer';
    chain: 'ethereum' | 'polygon';
    contractAddress: address;
    minAmount: number;
    maxAmount?: number;
  }
  ```
</CodeGroup>

## Examples

### Single Filter

Query all wallets that minted Bored Apes:

```typescript theme={null}
{
    "operator": "AND",
    "filters": [
        {
            "type": "minter",
            "chain": "ethereum",
            "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
            "minAmount": "1"
        }
    ]
}
```

Query wallets that hold at least 3 Bored Apes with golden Fur:

```typescript theme={null}
{
    "operator": "AND",
    "filters": [
        {
            "type": "holder",
            "chain": "ethereum",
            "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
            "minAmount": "3",
            "traits": [
                {
                    "Fur": "Solid Gold"
                }
            ]
        }
    ]
}
```

### Combined Filters

Query wallets that minted at least one Bored Ape and one Mutant Ape:

```typescript theme={null}
{
    "operator": "AND",
    "filters": [
        {
            "type": "minter",
            "chain": "ethereum",
            "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
            "minAmount": "1"
        },
        {
            "type": "minter",
            "chain": "ethereum",
            "contractAddress": "0x60e4d786628fea6478f785a6d7e704777c86a7c6",
            "minAmount": "1"
        }
    ]
}
```

Retrieve all wallets that minted at least one Bored Ape or 3 Clonex:

```typescript theme={null}
{
    "operator": "OR",
    "filters": [
        {
            "type": "minter",
            "chain": "ethereum",
            "contractAddress": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
            "minAmount": "1"
        },
        {
            "type": "minter",
            "chain": "ethereum",
            "contractAddress": "0xc1a12e1404485c85479bef9414b83a99ca4cd478",
            "minAmount": "3"
        }
    ]
}
```
