# Bloom.contains

Checks if an input is matched in the 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'

Bloom.contains(
  '0x00000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000000000000000000000000000000000000000000008000000001000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  '0xef2d6d194084c2de36e0dabfce45d046b37d1106'
)
// @log: true
```

## Definition

```ts
function contains(
  bloom: Hex.Hex,
  input: Hex.Hex | Bytes.Bytes,
): boolean
```

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

## Parameters

### bloom

* **Type:** `Hex.Hex`

Bloom filter value.

### input

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

Input to check.

## Return Type

Whether the input is matched in the bloom filter.

`boolean`
