> **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.

# listWorkflows

List workflows for the configured chain and wallet account.

## Import

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

## Usage

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

const result = await listWorkflows(config, {
  status: "pending",
  limit: 20,
});
```

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

## Parameters

### walletClient

`WalletClient | undefined`

Viem wallet override. Defaults to the configured wallet resolver.

### account

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

Wallet account override for the operation.

### after

`string | undefined`

Exclusive pagination cursor from the previous response.

### limit

`number | undefined`

Page size between 1 and 100.

### status

`"pending" | "completed" | undefined`

Optional pending/completed workflow filter.

## Return Type

```ts
type ListWorkflowsResult = Awaited<ReturnType<typeof listWorkflows>>;
```

Returns `{ readonly workflows: readonly { readonly workflowId: string; readonly operation: string; readonly status: "pending" | "completed"; }[]; readonly nextCursor: string | null; }`.

## 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 = listWorkflows.effect(config, {
  status: "pending",
  limit: 20,
});

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

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

## 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

* [`listWorkflows`](/sdk/api/workflows/list-workflows)
* [Guide](/core/guides/workflow-storage)
