# Bloom.containsPrepared

Checks if an input is matched in a [`Bloom.Prepared`](/api/Bloom/types#prepared) bloom filter.

## Imports

:::code-group
```ts [Named]
import { Bloom } from 'ox'
```

```ts [Entrypoint]
import * as Bloom from 'ox/Bloom'
```
:::

## Examples

```ts twoslash
import { Bloom } from 'ox'

const prepared = Bloom.prepare(
  '0x00000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000000000000000000000000000000000000000000008000000001000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000'
)
Bloom.containsPrepared(
  prepared,
  '0xef2d6d194084c2de36e0dabfce45d046b37d1106'
)
// @log: true
```

## Definition

```ts
function containsPrepared(
  prepared: Prepared,
  input: Hex.Hex | Bytes.Bytes,
): boolean
```

**Source:** [src/core/Bloom.ts](https://github.com/wevm/ox/blob/main/src/core/Bloom.ts#L189)

## Parameters

### prepared

* **Type:** [`Prepared`](/api/Bloom/types#bloomprepared)

Prepared bloom filter.

#### prepared.filter

* **Type:** `Uint8Array`

### input

* **Type:** `Hex.Hex | Bytes.Bytes`

Input to check.

## Return Type

Whether the input is matched in the bloom filter.

`boolean`
