> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://ensforge.com/api/mcp` to find what you need.

# getHcaExecutors

Inspect executors with pagination.

## Import

```ts
import { getHcaExecutors } from "@ensforge/core/hca";
```

## Usage

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

const result = await getHcaExecutors(config, {
  hca: "0x1234567890123456789012345678901234567890",
});
```

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

## Parameters

```ts
import type { HcaReadParameters } from "@ensforge/core/hca";
```

### hca

`` `0x${string}` ``

HCA address to inspect or operate on.

### cursor

`` `0x${string}` | undefined ``

Starting address for module pagination.

### size

`bigint | undefined`

Maximum number of module entries to return.

### blockNumber

`bigint | undefined`

Block number to read. Cannot be combined with blockTag.

### blockTag

`BlockTag | undefined`

Named block state to read. Cannot be combined with blockNumber.

## Return Type

```ts
import type { HcaModulePage } from "@ensforge/core/hca";
```

| Property     | Type                         | Description                              |
| ------------ | ---------------------------- | ---------------------------------------- |
| `modules`    | ``readonly `0x${string}`[]`` | Installed module addresses in this page. |
| `nextCursor` | `` `0x${string}` ``          | Cursor for the next page.                |

## 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 = getHcaExecutors.effect(config, {
  hca: "0x1234567890123456789012345678901234567890",
});

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

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

## Request

Use `.request` to describe the read without executing it, then include it in a typed
[read batch](/core/guides/batching).

```ts
const request = getHcaExecutors.request({
  hca: "0x1234567890123456789012345678901234567890",
});
```

## Error

The Promise API rejects with the same typed failures exposed by the Effect error channel. Errors
have a stable `_tag`, `code`, and `message`; boundary errors retain their original `cause`.

See [Error Handling](/core/guides/error-handling).

## Related

* [`getHcaExecutors`](/sdk/api/hca/get-hca-executors)
* [Guide](/core/guides/hca)
