Bloom.contains
Checks if an input is matched in the bloom filter.
Imports
Named
import { Bloom } from 'ox'
Examples
import { Bloom } from 'ox'
Bloom.contains(
'0x00000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002020000000000000000000000000000000000000000000008000000001000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'0xef2d6d194084c2de36e0dabfce45d046b37d1106',
)
true
Definition
function contains(
bloom: Hex.Hex,
input: Hex.Hex | Bytes.Bytes,
): boolean
Source: src/Bloom.ts
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
Error Type
Bloom.contains.ErrorType