# getIndexerStatus

Returns health and indexed-block metadata for every configured indexer source.

## Import

```ts
import { getIndexerStatus } from "@ensforge/core/indexer";
```

## Usage

:::code-group
```ts [index.ts]
import { getIndexerStatus } from "@ensforge/core/indexer";
import { config } from "./config";

const result = await getIndexerStatus(config);
```

```ts [config.ts]
// [!include ~/snippets/core/config.ts]
```
:::

## Parameters

This operation does not accept parameters.

## Return Type

```ts
import type { IndexerStatusType } from "@ensforge/core/indexer";
```

| Property  | Type                             | Description                                                                 |
| --------- | -------------------------------- | --------------------------------------------------------------------------- |
| `network` | `"mainnet" \| "sepolia"`         | Configured ENS network.                                                     |
| `sources` | `readonly IndexerSourceStatus[]` | A `ready`, `failed`, `disabled`, or `unavailable` status for each protocol. |

## Protocol Sources

ENSv1 and ENSv2 are checked independently. Endpoint failures are captured in source status values instead of failing the complete operation.

## Effect

Use `.effect` when composing the action in an Effect program. The success and error channels remain
fully typed.

```ts
import { Effect } from "effect";

const program = getIndexerStatus.effect(config);

type Success = Effect.Effect.Success<typeof program>;
type Failure = Effect.Effect.Error<typeof program>;

const result = await Effect.runPromise(program);
```

## Related

* [`sdk.indexer.getIndexerStatus`](/sdk/api/indexer/get-indexer-status)
* [`useIndexerStatus`](/react/api/hooks/indexer/use-indexer-status)
